mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
* 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:
parent
249172c3f2
commit
ae45a35b44
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user