From 8d7681bb7fc40b6681f759c2f6051e84cfc6d087 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Tue, 31 May 2005 09:43:04 +0000 Subject: Add support for XMM registers in GDB for x86 processors that support SSE (or its successors). Reviewed by: marcel, davidxu MFC After: 2 weeks --- lib/libthread_db/libc_r_db.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'lib/libthread_db/libc_r_db.c') 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 }; -- cgit v1.2.3