aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-01-14 20:00:48 +0000
committerMichael Snyder <msnyder@vmware.com>2002-01-14 20:00:48 +0000
commit356ae49dda05c8f28f0f7fa407a5081e3bc053dd (patch)
treed7db0a83f17298d2def07d2d9e35aa8dde4ffea5 /gdb
parent3a7e524e6b0b66d0e7ecfdffa5adaf01f5c8d8d8 (diff)
downloadgdb-356ae49dda05c8f28f0f7fa407a5081e3bc053dd.zip
gdb-356ae49dda05c8f28f0f7fa407a5081e3bc053dd.tar.gz
gdb-356ae49dda05c8f28f0f7fa407a5081e3bc053dd.tar.bz2
2002-01-14 Michael Snyder <msnyder@redhat.com>
* linux-proc.c (linux_do_thread_registers): Ignore fpxregs until we can resolve portability issues. * gregset.h: Remove references to fpxregs. * gcore.c (gcore_command): Initialize note_sec to NULL.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gcore.c2
-rw-r--r--gdb/gregset.h13
-rw-r--r--gdb/linux-proc.c11
4 files changed, 8 insertions, 25 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9ff1de2..cddea41 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2002-01-14 Michael Snyder <msnyder@redhat.com>
+
+ * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
+ until we can resolve portability issues.
+ * gregset.h: Remove references to fpxregs.
+ * gcore.c (gcore_command): Initialize note_sec to NULL.
+
2002-01-13 Andrew Cagney <ac131313@redhat.com>
* signals.c (target_signal_to_name): Rewrite. Only use
diff --git a/gdb/gcore.c b/gdb/gcore.c
index 2e81d5b..56c1da4 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -40,7 +40,7 @@ gcore_command (char *args, int from_tty)
{
struct cleanup *old_chain;
char *corefilename, corefilename_buffer[40];
- asection *note_sec;
+ asection *note_sec = NULL;
bfd *obfd;
void *note_data = NULL;
int note_size = 0;
diff --git a/gdb/gregset.h b/gdb/gregset.h
index f51dded..19eefec 100644
--- a/gdb/gregset.h
+++ b/gdb/gregset.h
@@ -52,18 +52,5 @@ extern void supply_fpregset (gdb_fpregset_t *fpregs);
extern void fill_gregset (gdb_gregset_t *gregs, int regno);
extern void fill_fpregset (gdb_fpregset_t *fpregs, int regno);
-#ifdef HAVE_PTRACE_GETFPXREGS
-/* Linux/i386: Copy register values between GDB's internal register cache
- and the i386 extended floating point registers. */
-
-#ifndef GDB_FPXREGSET_T
-#define GDB_FPXREGSET_T elf_fpxregset_t
-#endif
-
-typedef GDB_FPXREGSET_T gdb_fpxregset_t;
-
-extern void supply_fpxregset (gdb_fpxregset_t *fpxregs);
-extern void fill_fpxregset (gdb_fpxregset_t *fpxregs, int regno);
-#endif
#endif
diff --git a/gdb/linux-proc.c b/gdb/linux-proc.c
index 3ccab9c..666240f 100644
--- a/gdb/linux-proc.c
+++ b/gdb/linux-proc.c
@@ -148,9 +148,6 @@ linux_do_thread_registers (bfd *obfd, ptid_t ptid,
{
gdb_gregset_t gregs;
gdb_fpregset_t fpregs;
-#ifdef HAVE_PTRACE_GETFPXREGS
- gdb_fpxregset_t fpxregs;
-#endif
unsigned long merged_pid = ptid_get_tid (ptid) << 16 | ptid_get_pid (ptid);
fill_gregset (&gregs, -1);
@@ -167,14 +164,6 @@ linux_do_thread_registers (bfd *obfd, ptid_t ptid,
note_size,
&fpregs,
sizeof (fpregs));
-#ifdef HAVE_PTRACE_GETFPXREGS
- fill_fpxregset (&fpxregs, -1);
- note_data = (char *) elfcore_write_prxfpreg (obfd,
- note_data,
- note_size,
- &fpxregs,
- sizeof (fpxregs));
-#endif
return note_data;
}