This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH/RFC] ARM Add netbsd-elf hosting support
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Richard dot Earnshaw at arm dot com, thorpej at wasabisystems dot com
- Date: Wed, 15 May 2002 15:34:12 +0100
- Subject: [PATCH/RFC] ARM Add netbsd-elf hosting support
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
Patch below adds support for building GDB native on an arm-netbsdelf
platform.
If there are no objections I'll commit this in a few days.
R.
<date> Richard Earnshaw <rearnsha@arm.com>
* configure.host (arm*-*-netbsdelf*): New host.
* configure.tgt (arm*-*-netbsdelf*): New target.
* config/arm/nbsdelf.mh: New file.
* config/arm/nbsdelf.mt: New file.
* config/arm/nm-nbsdelf.h: New file.
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.36
diff -p -r1.36 configure.host
*** configure.host 8 May 2002 15:29:35 -0000 1.36
--- configure.host 15 May 2002 14:19:35 -0000
*************** alpha*-*-freebsd*) gdb_host=fbsd ;;
*** 38,43 ****
--- 38,44 ----
alpha*-*-netbsd*) gdb_host=nbsd ;;
arm*-*-linux*) gdb_host=linux ;;
+ arm*-*-netbsdelf*) gdb_host=nbsdelf ;;
arm*-*-netbsd*) gdb_host=nbsd ;;
arm*-*-*) gdb_host=arm ;;
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.62
diff -p -r1.62 configure.tgt
*** configure.tgt 12 May 2002 15:07:41 -0000 1.62
--- configure.tgt 15 May 2002 14:19:35 -0000
*************** arm*-wince-pe) gdb_target=wince ;;
*** 49,54 ****
--- 49,56 ----
arm*-*-linux*) gdb_target=linux
build_gdbserver=yes
;;
+ arm*-*-netbsdelf*) gdb_target=nbsdelf
+ gdb_multi_arch=yes ;;
arm*-*-netbsd*) gdb_target=nbsd
gdb_multi_arch=yes ;;
arm*-*-* | thumb*-*-* | strongarm*-*-*)
Index: config/arm/nbsdelf.mh
===================================================================
RCS file: config/arm/nbsdelf.mh
diff -N config/arm/nbsdelf.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/arm/nbsdelf.mh 15 May 2002 14:19:40 -0000
***************
*** 0 ****
--- 1,4 ----
+ # Host ARM running NetBSD
+ NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armnbsd-nat.o
+ XM_FILE=xm-nbsd.h
+ NAT_FILE=nm-nbsdelf.h
Index: config/arm/nbsdelf.mt
===================================================================
RCS file: config/arm/nbsdelf.mt
diff -N config/arm/nbsdelf.mt
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/arm/nbsdelf.mt 15 May 2002 14:19:40 -0000
***************
*** 0 ****
--- 1,2 ----
+ # Target: ARM running NetBSD
+ TDEPFILES= arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o solib-legacy.o
Index: config/arm/nm-nbsdelf.h
===================================================================
RCS file: config/arm/nm-nbsdelf.h
diff -N config/arm/nm-nbsdelf.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/arm/nm-nbsdelf.h 15 May 2002 14:19:40 -0000
***************
*** 0 ****
--- 1,28 ----
+ /* Native-dependent definitions for ARM running NetBSD/ELF, for GDB.
+ Copyright 2002
+ Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+ #ifndef NM_ARM_NBSDELF_H
+ #define NM_ARM_NBSDELF_H
+
+ #define SVR4_SHARED_LIBS
+ #include <nm-nbsd.h>
+
+ #endif /* NM_ARM_NBSDELF_H */