Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: gdb-patches@sources.redhat.com
Cc: Richard.Earnshaw@arm.com, thorpej@wasabisystems.com
Subject: [PATCH/RFC] ARM Add netbsd-elf hosting support
Date: Wed, 15 May 2002 07:35:00 -0000	[thread overview]
Message-ID: <200205151434.PAA26400@cam-mail2.cambridge.arm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]


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.


[-- Attachment #2: gdb-nbsdelf.patch --]
[-- Type: text/x-patch , Size: 3345 bytes --]

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 */

             reply	other threads:[~2002-05-15 14:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-15  7:35 Richard Earnshaw [this message]
2002-05-15  7:53 ` Jason R Thorpe

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=200205151434.PAA26400@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=thorpej@wasabisystems.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