This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
RFA: patch for ARM GNU/Linux gdbserver
- To: Philip Blundell <Philip dot Blundell at pobox dot com>
- Subject: RFA: patch for ARM GNU/Linux gdbserver
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Mon, 10 Apr 2000 16:53:03 -0400
- CC: gdb-patches at sourceware dot cygnus dot com, Stan Shebs <shebs at apple dot com>
- Organization: Rebel.com
- References: <E12e3tL-0001VY-00@kings-cross.london.uk.eu.org>
I have split this patch into two parts. This is the second part. It needs Stan
Sheb's approval for the change to the gdbserver files. I'd like to install this
on the mainline and the release branch. Is it ok to install?
2000-04-10 Philip Blundell <philb@gnu.org>
* gdbserver/low-linux.c: Add support for ARM GNU/Linux.
* config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Define.
* configure.tgt [arm*-*-linux*]: Add gdbserver to $configdirs.
Philip Blundell wrote:
>
> This patch seems to be needed for gdbserver to work on Linux/ARM.
>
> p.
>
> 2000-04-08 Philip Blundell <philb@gnu.org>
>
> * arm-linux-nat.c (arm_skip_solib_resolver): Move to ...
> * arm-linux-tdep.c (arm_skip_solib_resolver): ... here.
>
> * gdbserver/low-linux.c: Add support for ARM GNU/Linux.
> * config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Define.
> * configure.tgt [arm*-*-linux*]: Add gdbserver to $configdirs.
>
> Index: configure.tgt
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.tgt,v
> retrieving revision 1.5
> diff -u -p -u -r1.5 configure.tgt
> --- configure.tgt 2000/03/21 05:26:31 1.5
> +++ configure.tgt 2000/04/08 22:37:00
> @@ -52,7 +52,8 @@ alpha*-*-linux*) gdb_target=alpha-linux
> arc-*-*) gdb_target=arc ;;
>
> arm*-wince-pe) gdb_target=wince ;;
> -arm*-*-linux*) gdb_target=linux ;;
> +arm*-*-linux*) gdb_target=linux
> + configdirs="${configdirs} gdbserver" ;;
> arm*-*-* | thumb*-*-* | strongarm*-*-*)
> gdb_target=embed
> configdirs="$configdirs rdi-share"
> Index: config/arm/tm-linux.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/config/arm/tm-linux.h,v
> retrieving revision 1.3
> diff -u -p -u -r1.3 tm-linux.h
> --- config/arm/tm-linux.h 2000/02/28 20:51:08 1.3
> +++ config/arm/tm-linux.h 2000/04/08 22:37:11
> @@ -26,6 +26,8 @@
>
> #include "tm-linux.h"
>
> +#define ARM_GNULINUX_TARGET
> +
> /* Target byte order on ARM Linux is not selectable. */
> #undef TARGET_BYTE_ORDER_SELECTABLE_P
> #define TARGET_BYTE_ORDER_SELECTABLE_P 0
> Index: gdbserver/low-linux.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbserver/low-linux.c,v
> retrieving revision 1.2
> diff -u -p -u -r1.2 low-linux.c
> --- gdbserver/low-linux.c 2000/03/21 05:23:05 1.2
> +++ gdbserver/low-linux.c 2000/04/08 22:37:15
> @@ -276,6 +276,20 @@ m68k_linux_register_u_addr (blockend, re
> {
> return (blockend + 4 * regmap[regnum]);
> }
> +#elif defined(ARM_GNULINUX_TARGET)
> +static void
> +initialize_arch ()
> +{
> + return;
> +}
> +
> +/* From arm-linux-nat.c */
> +int
> +arm_linux_register_u_addr (int blockend, int regnum)
> +{
> + return blockend + REGISTER_BYTE (regnum);
> +}
> +
> #elif defined(IA64_GNULINUX_TARGET)
> #undef NUM_FREGS
> #define NUM_FREGS 0
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org
philb2.patch