From 1dd102ea1a5cfab904c417bc57677ff7ed824d2c Mon Sep 17 00:00:00 2001 From: Jason Thorpe Date: Sun, 21 Apr 2002 16:52:39 +0000 Subject: * 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. --- gdb/alphabsd-nat.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gdb/alphabsd-nat.c') 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 #include #include @@ -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); } -- cgit v1.2.1