Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c
@ 2008-02-18 19:16 Markus Deuling
  2008-02-18 19:55 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Deuling @ 2008-02-18 19:16 UTC (permalink / raw)
  To: GDB Patches; +Cc: Mark Kettenis, Andreas Schwab

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

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


[-- Attachment #2: diff-m68k --]
[-- Type: text/plain, Size: 490 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-18 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-18 19:16 [rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c Markus Deuling
2008-02-18 19:55 ` Andreas Schwab
2008-02-18 19:59   ` Markus Deuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox