aboutsummaryrefslogtreecommitdiff
path: root/gdb/hpux-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/hpux-thread.c')
-rw-r--r--gdb/hpux-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c
index 28920ba..1717a25 100644
--- a/gdb/hpux-thread.c
+++ b/gdb/hpux-thread.c
@@ -275,7 +275,7 @@ hpux_thread_fetch_registers (struct regcache *regcache, int regno)
if (regno == -1)
{
first_regno = 0;
- last_regno = NUM_REGS - 1;
+ last_regno = gdbarch_num_regs (current_gdbarch) - 1;
}
else
{
@@ -337,7 +337,7 @@ hpux_thread_store_registers (struct regcache *regcache, int regno)
if (regno == -1)
{
first_regno = 0;
- last_regno = NUM_REGS - 1;
+ last_regno = gdbarch_num_regs (current_gdbarch) - 1;
}
else
{