From: "Keith.Walker" <Keith.Walker@arm.com>
To: gdb-patches@sourceware.cygnus.com
Subject: Patch for arm-linux gdbserver
Date: Mon, 03 Dec 2001 06:09:00 -0000 [thread overview]
Message-ID: <4.1.20011203140709.00af4820@mhsun1.maidenhead.arm.com> (raw)
This patch allows the gdbserver to built for the arm-linux target.
ChangeLog:
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.
Index: gdb/gdbserver/low-linux.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/low-linux.c,v
retrieving revision 1.11
diff -c -3 -p -r1.11 low-linux.c
*** low-linux.c 2001/07/26 02:23:58 1.11
--- low-linux.c 2001/12/03 13:43:30
*************** initialize_arch (void)
*** 541,546 ****
--- 541,559 ----
{
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
Index: gdb/config/arm/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/nm-linux.h,v
retrieving revision 1.6
diff -c -3 -p -r1.6 nm-linux.h
*** nm-linux.h 2001/10/14 20:42:07 1.6
--- nm-linux.h 2001/12/03 13:43:58
***************
*** 23,28 ****
--- 23,37 ----
#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: gdb/config/arm/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/tm-linux.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 tm-linux.h
*** tm-linux.h 2001/11/30 20:27:09 1.7
--- tm-linux.h 2001/12/03 13:44:09
***************
*** 21,26 ****
--- 21,28 ----
#ifndef TM_ARMLINUX_H
#define TM_ARMLINUX_H
+ #define ARM_GNULINUX_TARGET
+
/* Include the common ARM target definitions. */
#include "arm/tm-arm.h"
Keith Walker keith.walker@arm.com Tel:+44 (1628) 427732
ARM Ltd http://www.arm.com
next reply other threads:[~2001-12-03 14:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 6:09 Keith.Walker [this message]
2001-12-04 23:43 ` Andrew Cagney
2001-12-05 7:19 ` Keith.Walker
2001-12-05 7:54 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4.1.20011203140709.00af4820@mhsun1.maidenhead.arm.com \
--to=keith.walker@arm.com \
--cc=gdb-patches@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox