aboutsummaryrefslogtreecommitdiff
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
commitdc129d82386b3ae4a511f9f60a76ac481d33d304 (patch)
tree8f169296cfc5c4d9a425e852e9d686026ad05c22 /gdb/alphabsd-nat.c
parentd49d1e0a2f67889077fff8ad80e9ed5e43ff169f (diff)
downloadgdb-dc129d82386b3ae4a511f9f60a76ac481d33d304.zip
gdb-dc129d82386b3ae4a511f9f60a76ac481d33d304.tar.gz
gdb-dc129d82386b3ae4a511f9f60a76ac481d33d304.tar.bz2
* 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 d7ad3a7..92b0fc2 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);
}