diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-28 18:15:01 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-28 18:15:01 +0000 |
commit | efc72ef5c00fc2d069b8d5cca7906c8004eca819 (patch) | |
tree | d63596e796e8a3c7c2e0c1a20a7326aee1f04743 /gdb/alpha-linux-nat.c | |
parent | 7a61a01c8945b93ece98a4f420ac188ea4f144bd (diff) | |
download | gdb-efc72ef5c00fc2d069b8d5cca7906c8004eca819.zip gdb-efc72ef5c00fc2d069b8d5cca7906c8004eca819.tar.gz gdb-efc72ef5c00fc2d069b8d5cca7906c8004eca819.tar.bz2 |
* alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
inline definition at the places the macros are used.
* alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
Diffstat (limited to 'gdb/alpha-linux-nat.c')
-rw-r--r-- | gdb/alpha-linux-nat.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c index 8307a69..b2a1fc7 100644 --- a/gdb/alpha-linux-nat.c +++ b/gdb/alpha-linux-nat.c @@ -30,13 +30,6 @@ #include <sys/procfs.h> #include "gregset.h" -/* Given a pointer to either a gregset_t or fpregset_t, return a - pointer to the first register. */ -#define ALPHA_REGSET_BASE(regsetp) ((long *) (regsetp)) - -/* Given a pointer to a gregset_t, locate the UNIQUE value. */ -#define ALPHA_REGSET_UNIQUE(regsetp) ((long *)(regsetp) + 32) - /* The address of UNIQUE for ptrace. */ #define ALPHA_UNIQUE_PTRACE_ADDR 65 @@ -48,21 +41,19 @@ void supply_gregset (gdb_gregset_t *gregsetp) { - long *regp = ALPHA_REGSET_BASE (gregsetp); - void *unique = ALPHA_REGSET_UNIQUE (gregsetp); + long *regp = (long *)gregsetp; - /* PC is in slot 32. */ - alpha_supply_int_regs (-1, regp, regp + 31, unique); + /* PC is in slot 32, UNIQUE is in slot 33. */ + alpha_supply_int_regs (-1, regp, regp + 31, regp + 32); } void fill_gregset (gdb_gregset_t *gregsetp, int regno) { - long *regp = ALPHA_REGSET_BASE (gregsetp); - void *unique = ALPHA_REGSET_UNIQUE (gregsetp); + long *regp = (long *)gregsetp; - /* PC is in slot 32. */ - alpha_fill_int_regs (regno, regp, regp + 31, unique); + /* PC is in slot 32, UNIQUE is in slot 33. */ + alpha_fill_int_regs (regno, regp, regp + 31, regp + 32); } /* @@ -73,7 +64,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno) void supply_fpregset (gdb_fpregset_t *fpregsetp) { - long *regp = ALPHA_REGSET_BASE (fpregsetp); + long *regp = (long *)fpregsetp; /* FPCR is in slot 32. */ alpha_supply_fp_regs (-1, regp, regp + 31); @@ -82,7 +73,7 @@ supply_fpregset (gdb_fpregset_t *fpregsetp) void fill_fpregset (gdb_fpregset_t *fpregsetp, int regno) { - long *regp = ALPHA_REGSET_BASE (fpregsetp); + long *regp = (long *)fpregsetp; /* FPCR is in slot 32. */ alpha_fill_fp_regs (regno, regp, regp + 31); |