aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/low-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/low-linux.c')
-rw-r--r--gdb/gdbserver/low-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/low-linux.c b/gdb/gdbserver/low-linux.c
index 56fe12f..eb55128 100644
--- a/gdb/gdbserver/low-linux.c
+++ b/gdb/gdbserver/low-linux.c
@@ -541,7 +541,7 @@ register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
- if (regno < 0 || regno >= ARCH_NUM_REGS)
+ if (regno < 0 || regno >= NUM_REGS)
error ("Invalid register number %d.", regno);
REGISTER_U_ADDR (addr, blockend, regno);