* gdbserver/low-linux.c (arm_register_u_addr): added.

(initialize_arch): added for ARM target.
* config/arm/nm-linux.h (U_REGS_OFFSET) defined.
(REGISTER_U_ADDR) defined.
* config/arm/tm-linux.h (ARM_GNULINUX_TARGET) defined.
This commit is contained in:
Keith Walker 2001-12-05 15:11:48 +00:00
parent 249172c3f2
commit ae45a35b44
4 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2001-12-03 Keith Walker <keith.walker@arm.com>
* gdbserver/low-linux.c (arm_register_u_addr): added.
(initialize_arch): added for ARM target.
* config/arm/nm-linux.h (U_REGS_OFFSET) defined.
(REGISTER_U_ADDR) defined.
* config/arm/tm-linux.h (ARM_GNULINUX_TARGET) defined.
2001-12-04 Corinna Vinschen <vinschen@redhat.com>
* arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning

View File

@ -23,6 +23,15 @@
#include "nm-linux.h"
/* ptrace register ``addresses'' are absolute. */
#define U_REGS_OFFSET 0
#ifdef GDBSERVER
#define REGISTER_U_ADDR(addr,blockend,regno) \
(addr) = arm_register_u_addr ((blockend),(regno))
#endif /* GDBSERVER */
/* Return sizeof user struct to callers in less machine dependent routines */
extern int kernel_u_size (void);
#define KERNEL_U_SIZE arm_linux_kernel_u_size()

View File

@ -21,6 +21,10 @@
#ifndef TM_ARMLINUX_H
#define TM_ARMLINUX_H
#ifdef GDBSERVER
#define ARM_GNULINUX_TARGET
#endif
/* Include the common ARM target definitions. */
#include "arm/tm-arm.h"

View File

@ -541,6 +541,19 @@ initialize_arch (void)
{
return;
}
#elif defined(ARM_GNULINUX_TARGET)
int arm_register_u_addr(blockend, regnum)
int blockend;
int regnum;
{
return blockend + REGISTER_BYTE(regnum);
}
static void
initialize_arch ()
{
}
#endif
CORE_ADDR