From: Markus Deuling <deuling@de.ibm.com>
To: GDB Patches <gdb-patches@sourceware.org>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, Andreas Schwab <schwab@suse.de>
Subject: [rfc]: Replace gdbarch_fp0_regnum in m68klinux-nat.c
Date: Mon, 18 Feb 2008 19:16:00 -0000 [thread overview]
Message-ID: <47B9D90F.4050103@de.ibm.com> (raw)
[-- 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? */
next reply other threads:[~2008-02-18 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 19:16 Markus Deuling [this message]
2008-02-18 19:55 ` Andreas Schwab
2008-02-18 19:59 ` Markus Deuling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47B9D90F.4050103@de.ibm.com \
--to=deuling@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox