aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-04-28 18:15:01 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-04-28 18:15:01 +0000
commitefc72ef5c00fc2d069b8d5cca7906c8004eca819 (patch)
treed63596e796e8a3c7c2e0c1a20a7326aee1f04743 /gdb/alpha-nat.c
parent7a61a01c8945b93ece98a4f420ac188ea4f144bd (diff)
downloadgdb-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-nat.c')
-rw-r--r--gdb/alpha-nat.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 542f335..b30f661 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -148,13 +148,6 @@ kernel_u_size (void)
/* Prototypes for supply_gregset etc. */
#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) ((regsetp)->regs)
-
-/* Locate the UNIQUE value within the gregset_t. */
-#define ALPHA_REGSET_UNIQUE(ptr) NULL
-
/*
* See the comment in m68k-tdep.c regarding the utility of these functions.
*/
@@ -162,21 +155,19 @@ kernel_u_size (void)
void
supply_gregset (gdb_gregset_t *gregsetp)
{
- long *regp = ALPHA_REGSET_BASE (gregsetp);
- void *unique = ALPHA_REGSET_UNIQUE (gregsetp);
+ long *regp = gregsetp->regs;
/* PC is in slot 32. */
- alpha_supply_int_regs (-1, regp, regp + 31, unique);
+ alpha_supply_int_regs (-1, regp, regp + 31, NULL);
}
void
fill_gregset (gdb_gregset_t *gregsetp, int regno)
{
- long *regp = ALPHA_REGSET_BASE (gregsetp);
- void *unique = ALPHA_REGSET_UNIQUE (gregsetp);
+ long *regp = gregsetp->regs;
/* PC is in slot 32. */
- alpha_fill_int_regs (regno, regp, regp + 31, unique);
+ alpha_fill_int_regs (regno, regp, regp + 31, NULL);
}
/*
@@ -187,7 +178,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno)
void
supply_fpregset (gdb_fpregset_t *fpregsetp)
{
- long *regp = ALPHA_REGSET_BASE (fpregsetp);
+ long *regp = fpregsetp->regs;
/* FPCR is in slot 32. */
alpha_supply_fp_regs (-1, regp, regp + 31);
@@ -196,7 +187,7 @@ supply_fpregset (gdb_fpregset_t *fpregsetp)
void
fill_fpregset (gdb_fpregset_t *fpregsetp, int regno)
{
- long *regp = ALPHA_REGSET_BASE (fpregsetp);
+ long *regp = fpregsetp->regs;
/* FPCR is in slot 32. */
alpha_fill_fp_regs (regno, regp, regp + 31);