diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-02-18 16:11:21 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-02-18 16:11:21 +0000 |
commit | 9215e42a5c4085dbe7375264069ec6d3f049ac8b (patch) | |
tree | 1f561dc83dc080d960b24f32d91c09d9ebd981c5 /gdb/hppa-linux-nat.c | |
parent | eedec97d866ecf3267b286476142f9260ca2189e (diff) | |
download | gdb-9215e42a5c4085dbe7375264069ec6d3f049ac8b.tar.gz |
* hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
* hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
current_gdbarch by gdbarch.
(hppa64_hpux_find_global_pointer): Likewise.
* hppa-tdep.c (hppa_find_global_pointer): Likewise.
(hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
find_global_pointer.
* hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
parameter.
* hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
* hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
of gdbarch_num_regs.
* hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
replace current_gdbarch by gdbarch.
(hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
Diffstat (limited to 'gdb/hppa-linux-nat.c')
-rw-r--r-- | gdb/hppa-linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index bcd7b4372f0..a92510b94ae 100644 --- a/gdb/hppa-linux-nat.c +++ b/gdb/hppa-linux-nat.c @@ -153,7 +153,7 @@ hppa_linux_register_addr (int regno, CORE_ADDR blockend) { CORE_ADDR addr; - if ((unsigned) regno >= gdbarch_num_regs (current_gdbarch)) + if ((unsigned) regno >= ARRAY_SIZE (u_offsets)) error (_("Invalid register number %d."), regno); if (u_offsets[regno] == -1) |