(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-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
#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()
#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"
{
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