From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18104 invoked by alias); 17 Nov 2005 12:26:13 -0000 Received: (qmail 18066 invoked by uid 22791); 17 Nov 2005 12:26:10 -0000 Received: from ip127.bb146.pacific.net.hk (HELO stl.com.hk) (202.64.146.127) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 12:26:10 +0000 Received: from 241.206.17.210.dyn.pacific.net.hk ([210.17.206.241] helo=[192.168.1.10]) by stl.com.hk with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1EcimL-0007y8-Eg for gdb-patches@sources.redhat.com; Thu, 17 Nov 2005 20:22:13 +0800 Message-ID: <437C76DE.5020108@tausq.org> Date: Thu, 17 Nov 2005 12:56:00 -0000 From: Randolph Chung User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [hppa-hpux] Core file support for hppa64-hp-hpux11.11 Content-Type: multipart/mixed; boundary="------------080204060200030703060009" 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/msg00276.txt.bz2 This is a multi-part message in MIME format. --------------080204060200030703060009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 237 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. randolph --------------080204060200030703060009 Content-Type: text/x-patch; name="core.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="core.diff" Content-length: 1244 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; return GDB_OSABI_UNKNOWN; } @@ -2067,6 +2078,9 @@ _initialize_hppa_hpux_tdep (void) gdbarch_register_osabi_sniffer (bfd_arch_unknown, bfd_target_unknown_flavour, hppa_hpux_core_osabi_sniffer); + gdbarch_register_osabi_sniffer (bfd_arch_hppa, + bfd_target_elf_flavour, + hppa_hpux_core_osabi_sniffer); gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_HPUX_SOM, hppa_hpux_som_init_abi); --------------080204060200030703060009--