summaryrefslogtreecommitdiff
path: root/gdb/alphabsd-nat.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-21 16:52:39 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-21 16:52:39 +0000
commit1dd102ea1a5cfab904c417bc57677ff7ed824d2c (patch)
treeb45f7e5a3e86e5ea3e6a8e371ce9ee07e8272517 /gdb/alphabsd-nat.c
parent4644b9c7650364d883dfa503f77d43aea1b23f5e (diff)
downloadgdb-1dd102ea1a5cfab904c417bc57677ff7ed824d2c.tar.gz
* alpha-tdep.h: New file. Includes several Alpha target constants
taken from... * config/alpha/tm-alpha.h: ...here. Remove macros that we now let gdbarch deal with. (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL. * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd to dependency list. * alpha-nat.c: Include alpha-tdep.h. Update for adjusted Alpha target register names. * alphabsd-nat.c: Likewise. * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted Alpha target register names. Make serveral routines static. (alpha_get_saved_register): New function. (alpha_abi_names): New. (process_note_abi_tag_sections): New function. (get_elfosabi): New function. (alpha_gdbarch_init): New function. (alpha_dump_tdep): New function. (_initialize_alpha_tdep): Register alpha_gdbarch_init.
Diffstat (limited to 'gdb/alphabsd-nat.c')
-rw-r--r--gdb/alphabsd-nat.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c
index d7ad3a73f37..92b0fc22377 100644
--- a/gdb/alphabsd-nat.c
+++ b/gdb/alphabsd-nat.c
@@ -22,6 +22,8 @@
#include "inferior.h"
#include "regcache.h"
+#include "alpha-tdep.h"
+
#include <sys/types.h>
#include <sys/ptrace.h>
#include <machine/reg.h>
@@ -103,7 +105,7 @@ supply_fpregset (fpregset_t *fpregsetp)
supply_register (i, (char *) &fpregsetp->fpr_regs[i - FP0_REGNUM]);
}
- supply_register (FPCR_REGNUM, (char *) &fpregsetp->fpr_cr);
+ supply_register (ALPHA_FPCR_REGNUM, (char *) &fpregsetp->fpr_cr);
}
/* Fill register REGNO (if it is a floating-point register) in
@@ -119,8 +121,8 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
if ((regno == -1 || regno == i) && ! CANNOT_STORE_REGISTER (i))
regcache_collect (i, (char *) &fpregsetp->fpr_regs[i - FP0_REGNUM]);
- if (regno == -1 || regno == FPCR_REGNUM)
- regcache_collect (FPCR_REGNUM, (char *) &fpregsetp->fpr_cr);
+ if (regno == -1 || regno == ALPHA_FPCR_REGNUM)
+ regcache_collect (ALPHA_FPCR_REGNUM, (char *) &fpregsetp->fpr_cr);
}
@@ -130,7 +132,7 @@ static int
getregs_supplies (int regno)
{
- return ((regno >= V0_REGNUM && regno <= ZERO_REGNUM)
+ return ((regno >= ALPHA_V0_REGNUM && regno <= ALPHA_ZERO_REGNUM)
|| regno >= PC_REGNUM);
}