This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Mark Kettenis <mark dot kettenis at xs4all dot nl>, Andreas Schwab <schwab at suse dot de>
- Date: Mon, 18 Feb 2008 20:14:23 +0100
- Subject: [rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c
Hi,
this patch replaces gdbarch_fp0_regnum by its value in m68klinux-nat.c. As I have no m68k available
I wasn't able to test it. Maybe someone with a m68k could have a look at that patch?
Ok to commit?
ChangeLog:
* m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
M68K_FP0_REGNUM.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/m68klinux-nat.c dev/gdb/m68klinux-nat.c
--- src/gdb/m68klinux-nat.c 2008-01-01 23:53:12.000000000 +0100
+++ dev/gdb/m68klinux-nat.c 2008-02-18 20:10:28.000000000 +0100
@@ -79,8 +79,7 @@ getregs_supplies (int regno)
int
getfpregs_supplies (int regno)
{
- return gdbarch_fp0_regnum (current_gdbarch) <= regno
- && regno <= M68K_FPI_REGNUM;
+ return M68K_FP0_REGNUM <= regno && regno <= M68K_FPI_REGNUM;
}
/* Does the current host support the GETREGS request? */