*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / hpux-thread.c
index 28920ba2bf1d6beca8c33624c575b5103b7c12df..1717a25a3b592e8646d8a28810b9263bd823aadb 100644 (file)
@@ -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
     {
This page took 0.023795 seconds and 4 git commands to generate.