From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9019 invoked by alias); 15 May 2002 14:35:03 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9012 invoked from network); 15 May 2002 14:35:01 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 15 May 2002 14:35:01 -0000 Received: by fw-cam.cambridge.arm.com; id PAA25027; Wed, 15 May 2002 15:34:58 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma024236; Wed, 15 May 02 15:34:14 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id PAA15310; Wed, 15 May 2002 15:34:13 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id PAA26400; Wed, 15 May 2002 15:34:12 +0100 (BST) Message-Id: <200205151434.PAA26400@cam-mail2.cambridge.arm.com> To: gdb-patches@sources.redhat.com cc: Richard.Earnshaw@arm.com, thorpej@wasabisystems.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: [PATCH/RFC] ARM Add netbsd-elf hosting support Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-7557813750" Date: Wed, 15 May 2002 07:35:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00601.txt.bz2 This is a multipart MIME message. --==_Exmh_-7557813750 Content-Type: text/plain; charset=us-ascii Content-length: 402 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. Richard Earnshaw * 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. --==_Exmh_-7557813750 Content-Type: text/x-patch ; name="gdb-nbsdelf.patch"; charset=us-ascii Content-Description: gdb-nbsdelf.patch Content-Disposition: attachment; filename="gdb-nbsdelf.patch" Content-length: 3345 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 + + #endif /* NM_ARM_NBSDELF_H */ --==_Exmh_-7557813750--