From 60054393321258d1acc88f65169fb60589cb4b41 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 10 May 2000 17:38:16 +0000 Subject: 2000-05-08 Michael Snyder * gdbarch.sh: Add FP0_REGNUM to list of multi-arched register numbers. * gdbarch.c, gdbarch.h: Regenerate. * core-regset.c: Change FP0_REGNUM to a runtime test. * procfs.c: Ditto. * sun3-nat.c: Ditto. * sparc-tdep.c: Ditto. * i386mach-nat.c: Remove unnecessary ifdef for FP0_REGNUM. * ptx4-nat.c: Ditto. * sol-thread.c (sol_thread_create_inferior): only add the thread to the thread list if it is not already in there. (prototypes for thread_db func ptrs): pretty up formatting. --- gdb/core-regset.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/core-regset.c') diff --git a/gdb/core-regset.c b/gdb/core-regset.c index 8f96c0f..3688027 100644 --- a/gdb/core-regset.c +++ b/gdb/core-regset.c @@ -109,9 +109,8 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) else { memcpy ((char *) &fpregset, core_reg_sect, sizeof (fpregset)); -#if defined (FP0_REGNUM) - supply_fpregset (&fpregset); -#endif + if (FP0_REGNUM >= 0) + supply_fpregset (&fpregset); } } #endif /* defined(HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T) */ -- cgit v1.1