From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13624 invoked by alias); 9 Mar 2006 15:37:58 -0000 Received: (qmail 13609 invoked by uid 22791); 9 Mar 2006 15:37:58 -0000 X-Spam-Check-By: sourceware.org Received: from ip127.bb146.pacific.net.hk (HELO mailhub.stlglobal.com) (202.64.146.127) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Mar 2006 15:37:55 +0000 Received: from localhost ([127.0.0.1]) by mailhub.stlglobal.com with esmtp (Exim 4.50) id 1FHNCu-00008e-W7; Thu, 09 Mar 2006 23:37:41 +0800 Message-ID: <44104BCC.8060700@tausq.org> Date: Thu, 09 Mar 2006 18:05:00 -0000 From: Randolph Chung User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com CC: John David Anglin Subject: [hpux] Fix build problem on hpux Content-Type: multipart/mixed; boundary="------------010200040803080306070707" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00136.txt.bz2 This is a multi-part message in MIME format. --------------010200040803080306070707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 196 This fixes the build problem on HPUX reported recently by Dave Anglin (PR/2097). Thanks to Dave for debugging the problem :) I'll check this in in a few days unless I hear objections. randolph --------------010200040803080306070707 Content-Type: text/x-patch; name="hpcomp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hpcomp.diff" Content-length: 1429 2005-03-09 Randolph Chung PR gdb/2097 * hpread.c (hpread_start_psymtab): Remove hpread_psymtab_to_symtab declaration. * config/pa/hppahpux.mt (MT_CFLAGS): Define _XOPEN_SOURCE_EXTENDED. Index: hpread.c =================================================================== RCS file: /cvs/src/src/gdb/hpread.c,v retrieving revision 1.58 diff -u -p -r1.58 hpread.c --- hpread.c 17 Dec 2005 22:34:01 -0000 1.58 +++ hpread.c 9 Mar 2006 15:28:16 -0000 @@ -2385,7 +2386,6 @@ hpread_start_psymtab (struct objfile *ob struct partial_symbol **static_syms) { int offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); - extern void hpread_psymtab_to_symtab (); struct partial_symtab *result = start_psymtab_common (objfile, objfile->section_offsets, filename, textlow, global_syms, static_syms); Index: config/pa/hppahpux.mt =================================================================== RCS file: /cvs/src/src/gdb/config/pa/hppahpux.mt,v retrieving revision 1.7 diff -u -p -r1.7 hppahpux.mt --- config/pa/hppahpux.mt 13 Dec 2004 04:06:16 -0000 1.7 +++ config/pa/hppahpux.mt 9 Mar 2006 15:28:16 -0000 @@ -1,4 +1,4 @@ # Target: HP PA-RISC running hpux -MT_CFLAGS = -DPA_SOM_ONLY=1 +MT_CFLAGS = -DPA_SOM_ONLY=1 -D_XOPEN_SOURCE_EXTENDED TDEPFILES= hppa-tdep.o hppa-hpux-tdep.o corelow.o somread.o hpread.o solib-som.o solib-pa64.o solib.o DEPRECATED_TM_FILE= tm-hppah.h --------------010200040803080306070707--