* [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
* Re: [rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c
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
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2008-02-18 19:55 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Patches, Mark Kettenis
Markus Deuling <deuling@de.ibm.com> writes:
> * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
> M68K_FP0_REGNUM.
This is OK.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c
2008-02-18 19:55 ` Andreas Schwab
@ 2008-02-18 19:59 ` Markus Deuling
0 siblings, 0 replies; 3+ messages in thread
From: Markus Deuling @ 2008-02-18 19:59 UTC (permalink / raw)
To: Andreas Schwab; +Cc: GDB Patches, Mark Kettenis
Andreas Schwab schrieb:
> Markus Deuling <deuling@de.ibm.com> writes:
>
>> * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
>> M68K_FP0_REGNUM.
>
> This is OK.
>
> Andreas.
>
Great, thank you! Committed this one now.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
^ 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