summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db/arch
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2005-05-31 09:43:04 +0000
committerdfr <dfr@FreeBSD.org>2005-05-31 09:43:04 +0000
commit874478d7fd90e4178b95bc5a6f3b15c0c057c491 (patch)
tree6e75a2cdc72929f6a8fcd18615399aea3228d568 /lib/libthread_db/arch
parent0d07e4ee86c5f875d30d214612b6aea86b793a5a (diff)
downloadFreeBSD-src-874478d7fd90e4178b95bc5a6f3b15c0c057c491.zip
FreeBSD-src-874478d7fd90e4178b95bc5a6f3b15c0c057c491.tar.gz
Add support for XMM registers in GDB for x86 processors that support
SSE (or its successors). Reviewed by: marcel, davidxu MFC After: 2 weeks
Diffstat (limited to 'lib/libthread_db/arch')
-rw-r--r--lib/libthread_db/arch/i386/libpthread_md.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libthread_db/arch/i386/libpthread_md.c b/lib/libthread_db/arch/i386/libpthread_md.c
index 86bb88d..dc14e60 100644
--- a/lib/libthread_db/arch/i386/libpthread_md.c
+++ b/lib/libthread_db/arch/i386/libpthread_md.c
@@ -81,6 +81,20 @@ pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r)
}
void
+pt_fxsave_to_ucontext(const char* r, ucontext_t *uc)
+{
+ if (has_xmm_regs)
+ memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(struct savexmm));
+}
+
+void
+pt_ucontext_to_fxsave(const ucontext_t *uc, char *r)
+{
+ if (has_xmm_regs)
+ memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(struct savexmm));
+}
+
+void
pt_md_init(void)
{
ucontext_t uc;
OpenPOWER on IntegriCloud