aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-proc.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-04-24 22:09:58 +0000
committerDaniel Jacobowitz <drow@false.org>2002-04-24 22:09:58 +0000
commit32872fa78efd735aabd79d9995dab723885560f5 (patch)
tree2f89a1a1caed0902545bc0a5f22dba343c1f08ca /gdb/linux-proc.c
parentaf55c2e6c3b2479292a76224a93f0504ceaacf55 (diff)
downloadgdb-32872fa78efd735aabd79d9995dab723885560f5.zip
gdb-32872fa78efd735aabd79d9995dab723885560f5.tar.gz
gdb-32872fa78efd735aabd79d9995dab723885560f5.tar.bz2
2002-04-24 Daniel Jacobowitz <drow@mvista.com>
* config/i386/tm-linux.h: Define FILL_FPXREGSET. * gregset.h: If FILL_FPXREGSET is defined, provide gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset. * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET is defined, call fill_fpxregset.
Diffstat (limited to 'gdb/linux-proc.c')
-rw-r--r--gdb/linux-proc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/linux-proc.c b/gdb/linux-proc.c
index 832f14e..aa3b571 100644
--- a/gdb/linux-proc.c
+++ b/gdb/linux-proc.c
@@ -167,6 +167,9 @@ linux_do_thread_registers (bfd *obfd, ptid_t ptid,
{
gdb_gregset_t gregs;
gdb_fpregset_t fpregs;
+#ifdef FILL_FPXREGSET
+ gdb_fpxregset_t fpxregs;
+#endif
unsigned long merged_pid = ptid_get_tid (ptid) << 16 | ptid_get_pid (ptid);
fill_gregset (&gregs, -1);
@@ -183,6 +186,14 @@ linux_do_thread_registers (bfd *obfd, ptid_t ptid,
note_size,
&fpregs,
sizeof (fpregs));
+#ifdef FILL_FPXREGSET
+ fill_fpxregset (&fpxregs, -1);
+ note_data = (char *) elfcore_write_prxfpreg (obfd,
+ note_data,
+ note_size,
+ &fpxregs,
+ sizeof (fpxregs));
+#endif
return note_data;
}