summaryrefslogtreecommitdiff
path: root/gdb/core-aout.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-13 23:31:14 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-13 23:31:14 +0000
commit95971ff2d2a2f683b1deb0e21b11f98b7b54d178 (patch)
treeeeb47132390094f4a80d568911f9b3d8c0cea70f /gdb/core-aout.c
parentf71ae7b2a966f16d325a238381a54e878c628535 (diff)
downloadgdb-95971ff2d2a2f683b1deb0e21b11f98b7b54d178.tar.gz
Eliminate ARCH_NUM_REGS.
Diffstat (limited to 'gdb/core-aout.c')
-rw-r--r--gdb/core-aout.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/core-aout.c b/gdb/core-aout.c
index 4ef64ea2168..0329302dc1e 100644
--- a/gdb/core-aout.c
+++ b/gdb/core-aout.c
@@ -38,7 +38,6 @@
#include <sys/param.h>
#include "gdbcore.h"
#include "value.h" /* For supply_register. */
-#include "inferior.h" /* For ARCH_NUM_REGS. */
#include "regcache.h"
/* These are needed on various systems to expand REGISTER_U_ADDR. */
@@ -82,7 +81,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
CORE_ADDR addr;
int bad_reg = -1;
CORE_ADDR reg_ptr = -reg_addr; /* Original u.u_ar0 is -reg_addr. */
- int numregs = ARCH_NUM_REGS;
+ int numregs = NUM_REGS;
/* If u.u_ar0 was an absolute address in the core file, relativize it now,
so we can use it as an offset into core_reg_sect. When we're done,
@@ -118,7 +117,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);