* gdbserver/low-linux.c (arm_register_u_addr): added.
authorKeith Walker <keith.walker@arm.com>
Wed, 5 Dec 2001 15:11:48 +0000 (15:11 +0000)
committerKeith Walker <keith.walker@arm.com>
Wed, 5 Dec 2001 15:11:48 +0000 (15:11 +0000)
(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.

gdb/ChangeLog
gdb/config/arm/nm-linux.h
gdb/config/arm/tm-linux.h
gdb/gdbserver/low-linux.c

index 59a4666b55827f320deb77960a15bd0f75c64765..dece6474f49731c910cf1c909df0b4c22a2fcca1 100644 (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
index e2a1795af47a0c85256aeb7b887e7eb43171eb53..2a0ebb3804bb3bc8e6c626056ed7787d3b99c730 100644 (file)
 
 #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()
index 4ef05bb813c561a44811ce0ff78f5e602e62aa85..97520e701d44000641d280cd0e63e6ae6290512a 100644 (file)
 #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"
 
index 0c7fce55833e7d058265b125c321b8b07d909d91..0fd14af97acf136b55f6091f3f26bd008ca17fe1 100644 (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