From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6227 invoked by alias); 18 Aug 2002 16:14:07 -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 6207 invoked from network); 18 Aug 2002 16:13:58 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 18 Aug 2002 16:13:58 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9B4AF3CFA for ; Sun, 18 Aug 2002 12:13:50 -0400 (EDT) Message-ID: <3D5FC7BE.3000302@ges.redhat.com> Date: Sun, 18 Aug 2002 09:14:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch/in] Add (broken) hppa-elf target Content-Type: multipart/mixed; boundary="------------090009080300090603060108" X-SW-Source: 2002-08/txt/msg00503.txt.bz2 This is a multi-part message in MIME format. --------------090009080300090603060108 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 394 Hello, This adds a config pattern to match hppa*-*-*. It configures a very simple PA risc target. The target doesn't include SOM support (ya!). The build then barfs in hppa-tdep.c as that file is trying to suck in system headers (a big NO NO!). If anyone is looking to multi-arch HPPA then, I think, getting this target to build will make a very good starting point. committed, Andrew --------------090009080300090603060108 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 3018 2002-08-18 Andrew Cagney * config/pa/tm-hppa.h (hppa_store_return_value): Declare. (hppa_value_returned_from_stack): Declare. (hppa_extract_return_value): Declare. * config/pa/hppa.mt: New file. * configure.tgt: Recognize hppa*-*-*. * MAINTAINERS: Change HPPA target to hppa-elf. Still broken. Index: MAINTAINERS =================================================================== RCS file: /cvs/src/src/gdb/MAINTAINERS,v retrieving revision 1.195 diff -u -r1.195 MAINTAINERS --- MAINTAINERS 18 Aug 2002 04:14:02 -0000 1.195 +++ MAINTAINERS 18 Aug 2002 16:06:49 -0000 @@ -127,7 +127,7 @@ ns32k --target=ns32k-netbsd ,-Werror Maintenance only - pa (--target=hppa1.1-hp-proelf broken) + pa (--target=hppa-elf broken) Maintenance only OBSOLETE candidate, not multi-arch Index: configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.80 diff -u -r1.80 configure.tgt --- configure.tgt 18 Aug 2002 04:14:02 -0000 1.80 +++ configure.tgt 18 Aug 2002 16:06:50 -0000 @@ -83,6 +83,7 @@ hppa*-*-hpux*) gdb_target=hppahpux ;; hppa*-*-hiux*) gdb_target=hppahpux ;; hppa*-*-osf*) gdb_target=hppaosf ;; +hppa*-*-*) gdb_target=hppa ;; i[3456]86-sequent-bsd*) gdb_target=symmetry ;; i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;; Index: config/pa/hppa.mt =================================================================== RCS file: config/pa/hppa.mt diff -N config/pa/hppa.mt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ config/pa/hppa.mt 18 Aug 2002 16:06:54 -0000 @@ -0,0 +1,2 @@ +TDEPFILES= hppa-tdep.o +TM_FILE= tm-hppa.h Index: config/pa/tm-hppa.h =================================================================== RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v retrieving revision 1.16 diff -u -r1.16 tm-hppa.h --- config/pa/tm-hppa.h 14 Jun 2002 22:55:49 -0000 1.16 +++ config/pa/tm-hppa.h 18 Aug 2002 16:07:13 -0000 @@ -310,6 +310,7 @@ a function return value of type TYPE, and copy that, in virtual format, into VALBUF. */ +void hppa_extract_return_value (struct type *type, char *regbuf, char *valbuf); #define DEPRECATED_EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ hppa_extract_return_value (TYPE, REGBUF, VALBUF); @@ -330,6 +331,8 @@ /* Write into appropriate registers a function return value of type TYPE, given in virtual format. */ + +extern void hppa_store_return_value (struct type *type, char *valbuf); #define STORE_RETURN_VALUE(TYPE,VALBUF) \ hppa_store_return_value (TYPE, VALBUF); @@ -350,6 +353,8 @@ specified in the calling convention doc. As far as I know, the only way to get the return value is to have the caller tell us where it told the callee to put it, rather than have the callee tell us. */ +struct value *hppa_value_returned_from_stack (register struct type *valtype, + CORE_ADDR addr); #define VALUE_RETURNED_FROM_STACK(valtype,addr) \ hppa_value_returned_from_stack (valtype, addr) --------------090009080300090603060108--