diff options
author | Doug Rabson <dfr@FreeBSD.org> | 2005-05-31 09:43:04 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 2005-05-31 09:43:04 +0000 |
commit | 8d7681bb7fc40b6681f759c2f6051e84cfc6d087 (patch) | |
tree | 6e75a2cdc72929f6a8fcd18615399aea3228d568 /lib/libthread_db/libc_r_db.c | |
parent | 3d7f65df6e2e73128b476eb062c48ca26b91a64c (diff) | |
download | src-8d7681bb7fc40b6681f759c2f6051e84cfc6d087.tar.gz src-8d7681bb7fc40b6681f759c2f6051e84cfc6d087.zip |
Add support for XMM registers in GDB for x86 processors that support
SSE (or its successors).
Reviewed by: marcel, davidxu
MFC After: 2 weeks
Notes
Notes:
svn path=/head/; revision=146818
Diffstat (limited to 'lib/libthread_db/libc_r_db.c')
-rw-r--r-- | lib/libthread_db/libc_r_db.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/libthread_db/libc_r_db.c b/lib/libthread_db/libc_r_db.c index 78be7029ac29..10f7df1b0d7f 100644 --- a/lib/libthread_db/libc_r_db.c +++ b/lib/libthread_db/libc_r_db.c @@ -228,6 +228,14 @@ libc_r_db_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *ti) return ((err == PS_OK) ? TD_OK : TD_ERR); } +#ifdef __i386__ +static td_err_e +libc_r_db_thr_getxmmregs(const td_thrhandle_t *th, char *fxsave) +{ + return (TD_NOFPREGS); +} +#endif + static td_err_e libc_r_db_thr_getfpregs(const td_thrhandle_t *th, prfpregset_t *r) { @@ -284,6 +292,14 @@ libc_r_db_thr_set_event(const td_thrhandle_t *th, td_thr_events_t *ev) return (0); } +#ifdef __i386__ +static td_err_e +libc_r_db_thr_setxmmregs(const td_thrhandle_t *th, const char *fxsave) +{ + return (TD_NOFPREGS); +} +#endif + static td_err_e libc_r_db_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *r) { @@ -324,5 +340,9 @@ struct ta_ops libc_r_db_ops = { .to_thr_set_event = libc_r_db_thr_set_event, .to_thr_setfpregs = libc_r_db_thr_setfpregs, .to_thr_setgregs = libc_r_db_thr_setgregs, - .to_thr_validate = libc_r_db_thr_validate + .to_thr_validate = libc_r_db_thr_validate, +#ifdef __i386__ + .to_thr_getxmmregs = libc_r_db_thr_getxmmregs, + .to_thr_setxmmregs = libc_r_db_thr_setxmmregs, +#endif }; |