From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28390 invoked by alias); 17 Nov 2005 12:44:16 -0000 Received: (qmail 28375 invoked by uid 22791); 17 Nov 2005 12:44:13 -0000 Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 12:44:13 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id jAHCiAOT003589; Thu, 17 Nov 2005 13:44:10 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id jAHCi930000517; Thu, 17 Nov 2005 13:44:09 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id jAHCi9RY004505; Thu, 17 Nov 2005 13:44:09 +0100 (CET) Date: Thu, 17 Nov 2005 14:46:00 -0000 Message-Id: <200511171244.jAHCi9RY004505@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: randolph@tausq.org CC: gdb-patches@sources.redhat.com In-reply-to: <437C76DE.5020108@tausq.org> (message from Randolph Chung on Thu, 17 Nov 2005 20:26:06 +0800) Subject: Re: [hppa-hpux] Core file support for hppa64-hp-hpux11.11 References: <437C76DE.5020108@tausq.org> 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: 2005-11/txt/msg00279.txt.bz2 > Date: Thu, 17 Nov 2005 20:26:06 +0800 > From: Randolph Chung > > Together with http://sourceware.org/ml/binutils/2005-11/msg00269.html, > the following patch adds support for corefiles to hppa64-hp-hpux11.11. > This should fix corefiles/2026 > > I'll check this in once the bfd bits are approved. > > 2005-11-17 Randolph Chung > > PR corefiles/2026 > * hppa-hpux-tdep.c (hppa_hpux_core_osabi_sniffer): Recognize core > files generated by hppa64-hp-hpux* > (_initialize_hppa_hpux_tdep): Likewise. > > Index: hppa-hpux-tdep.c > =================================================================== > RCS file: /cvs/src/src/gdb/hppa-hpux-tdep.c,v > retrieving revision 1.43 > diff -u -p -r1.43 hppa-hpux-tdep.c > --- hppa-hpux-tdep.c 29 Oct 2005 21:31:45 -0000 1.43 > +++ hppa-hpux-tdep.c 17 Nov 2005 12:18:56 -0000 > @@ -2055,6 +2064,8 @@ hppa_hpux_core_osabi_sniffer (bfd *abfd) > { > if (strcmp (bfd_get_target (abfd), "hpux-core") == 0) > return GDB_OSABI_HPUX_SOM; > + else if (strcmp (bfd_get_target (abfd), "elf64-hppa") == 0) > + return GDB_OSABI_HPUX_ELF; Don't think this is right. Is it needed at all? If it is, then we should try to do this differently. The mere fact that the BFD target is elf64-hppa doesn't imply that this is a HP-UX ELF core file does it? Mark