* [rfc] [15/15] Add gdbarch to register_name callback in alpha-tdep.c
@ 2007-10-31 10:48 Markus Deuling
0 siblings, 0 replies; only message in thread
From: Markus Deuling @ 2007-10-31 10:48 UTC (permalink / raw)
To: GDB Patches; +Cc: Ulrich Weigand
[-- Attachment #1: Type: text/plain, Size: 349 bytes --]
Hi,
this patch adds gdbarch to register_name callback in alpha-tdep.c
Is this ok to commit?
ChangeLog:
* alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
(alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
of alpha_register_name.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
[-- Attachment #2: diff-alpha --]
[-- Type: text/plain, Size: 928 bytes --]
diff -urpN src/gdb/alpha-tdep.c dev/gdb/alpha-tdep.c
--- src/gdb/alpha-tdep.c 2007-10-24 22:29:14.000000000 +0200
+++ dev/gdb/alpha-tdep.c 2007-10-31 07:20:31.000000000 +0100
@@ -54,7 +54,7 @@
compatibility with existing remote alpha targets. */
static const char *
-alpha_register_name (int regno)
+alpha_register_name (struct gdbarch *gdbarch, int regno)
{
static const char * const register_names[] =
{
@@ -80,14 +80,14 @@ static int
alpha_cannot_fetch_register (int regno)
{
return (regno == ALPHA_ZERO_REGNUM
- || strlen (alpha_register_name (regno)) == 0);
+ || strlen (alpha_register_name (current_gdbarch, regno)) == 0);
}
static int
alpha_cannot_store_register (int regno)
{
return (regno == ALPHA_ZERO_REGNUM
- || strlen (alpha_register_name (regno)) == 0);
+ || strlen (alpha_register_name (current_gdbarch, regno)) == 0);
}
static struct type *
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-31 10:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-31 10:48 [rfc] [15/15] Add gdbarch to register_name callback in alpha-tdep.c Markus Deuling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox