From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18173 invoked by alias); 17 Nov 2005 23:44:11 -0000 Received: (qmail 18165 invoked by uid 22791); 17 Nov 2005 23:44:09 -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 23:44:09 +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 1EctMM-0001Xx-86; Fri, 18 Nov 2005 07:40:06 +0800 Message-ID: <437D15C4.9000207@tausq.org> Date: Fri, 18 Nov 2005 03:37:00 -0000 From: Randolph Chung User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) MIME-Version: 1.0 To: Mark Kettenis CC: gdb-patches@sources.redhat.com Subject: Re: [hppa-hpux] Core file support for hppa64-hp-hpux11.11 References: <437C76DE.5020108@tausq.org> <200511171244.jAHCi9RY004505@elgar.sibelius.xs4all.nl> <437C7E07.5050804@tausq.org> <200511171446.jAHEkDim026595@elgar.sibelius.xs4all.nl> In-Reply-To: <200511171446.jAHEkDim026595@elgar.sibelius.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00305.txt.bz2 > Ok, so your problem is that the core file is marked as "UNIX - System > V", so there's no way to tell that this is a HP-UX core file. Yes. > What I'd do, is create BFD sections out of those HP_CORE_XXX program > headers, and then in GDB, check for one of those sections. There's > one program header that looks particularly promising: HP_CORE_KERNEL. > That one contains the string HP-UX. That'd certainly convince me that > this is a HP-UX core file. [...] > Actually I think it makes sense to modify your BFD patch such that it > gives all HP_CORE_XXX program headers a sensible name: Sure, I'll do that. So basically you want: 1) BFD to name the HP_CORE_KERNEL phdr as a "core.kernel" section 2) GDB in its OSABI sniffer will look for this section and check that its contents contains "HP-UX" right? randolph