This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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?  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]