aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2007-11-16 04:56:45 +0000
committerMarkus Deuling <deuling@de.ibm.com>2007-11-16 04:56:45 +0000
commit64a3914f1d067cda3ec88333e5312afe133d5d36 (patch)
treea182e9030a0bb5ff6636b988e9df4360e3a8f84f /gdb/cris-tdep.c
parent40a6adc1f847a722db47fa6dc14e4664d59f07b6 (diff)
downloadgdb-64a3914f1d067cda3ec88333e5312afe133d5d36.zip
gdb-64a3914f1d067cda3ec88333e5312afe133d5d36.tar.gz
gdb-64a3914f1d067cda3ec88333e5312afe133d5d36.tar.bz2
2007-11-16 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch as parameter. * gdbarch.{c,h}: Regenerate. * alpha-tdep.c (alpha_cannot_fetch_register) (alpha_cannot_store_register): Add gdbarch as parameter. Replace current_gdbarch by gdbarch. * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register) (crisv32_cannot_fetch_register) (crisv32_cannot_store_register): Likewise. * arch-utils.c (cannot_register_not): Likewise. * arch-utils.h (cannot_register_not): Likewise. * hppa-tdep.c (hppa32_cannot_store_register) (hppa32_cannot_store_register, hppa64_cannot_store_register) (hppa64_cannot_fetch_register): Likewise. * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register) (mipsnbsd_cannot_store_register): Likewise.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 4cbde58..9e560cf 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -1590,9 +1590,9 @@ cris_register_size (int regno)
for unimplemented (size 0) and non-existant registers. */
static int
-cris_cannot_fetch_register (int regno)
+cris_cannot_fetch_register (struct gdbarch *gdbarch, int regno)
{
- return ((regno < 0 || regno >= gdbarch_num_regs (current_gdbarch))
+ return ((regno < 0 || regno >= gdbarch_num_regs (gdbarch))
|| (cris_register_size (regno) == 0));
}
@@ -1600,7 +1600,7 @@ cris_cannot_fetch_register (int regno)
reasons. */
static int
-cris_cannot_store_register (int regno)
+cris_cannot_store_register (struct gdbarch *gdbarch, int regno)
{
/* There are three kinds of registers we refuse to write to.
1. Those that not implemented.
@@ -1609,7 +1609,7 @@ cris_cannot_store_register (int regno)
*/
if (regno < 0
- || regno >= gdbarch_num_regs (current_gdbarch)
+ || regno >= gdbarch_num_regs (gdbarch)
|| cris_register_size (regno) == 0)
/* Not implemented. */
return 1;
@@ -1632,9 +1632,9 @@ cris_cannot_store_register (int regno)
for unimplemented (size 0) and non-existant registers. */
static int
-crisv32_cannot_fetch_register (int regno)
+crisv32_cannot_fetch_register (struct gdbarch *gdbarch, int regno)
{
- return ((regno < 0 || regno >= gdbarch_num_regs (current_gdbarch))
+ return ((regno < 0 || regno >= gdbarch_num_regs (gdbarch))
|| (cris_register_size (regno) == 0));
}
@@ -1642,7 +1642,7 @@ crisv32_cannot_fetch_register (int regno)
reasons. */
static int
-crisv32_cannot_store_register (int regno)
+crisv32_cannot_store_register (struct gdbarch *gdbarch, int regno)
{
/* There are three kinds of registers we refuse to write to.
1. Those that not implemented.
@@ -1651,7 +1651,7 @@ crisv32_cannot_store_register (int regno)
*/
if (regno < 0
- || regno >= gdbarch_num_regs (current_gdbarch)
+ || regno >= gdbarch_num_regs (gdbarch)
|| cris_register_size (regno) == 0)
/* Not implemented. */
return 1;