From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7849 invoked by alias); 18 Nov 2005 00:08:51 -0000 Received: (qmail 7833 invoked by uid 22791); 18 Nov 2005 00:08:48 -0000 Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 18 Nov 2005 00:08:48 +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 jAI08jZs010220; Fri, 18 Nov 2005 01:08:45 +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 jAI08jpM003141; Fri, 18 Nov 2005 01:08:45 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id jAI08jpp000219; Fri, 18 Nov 2005 01:08:45 +0100 (CET) Date: Fri, 18 Nov 2005 04:44:00 -0000 Message-Id: <200511180008.jAI08jpp000219@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: randolph@tausq.org CC: gdb-patches@sources.redhat.com In-reply-to: <437D15C4.9000207@tausq.org> (message from Randolph Chung on Fri, 18 Nov 2005 07:44:04 +0800) 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> <437D15C4.9000207@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/msg00306.txt.bz2 > Date: Fri, 18 Nov 2005 07:44:04 +0800 > From: Randolph Chung > > > 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? Yes. The section will come out as .core.kernel in objdump. Perhaps it should be .hp.core.kernel. I'll leave the naming decision to you and/or the binutils maintainers. But I think that's better than having all those .proc0, .proc1, .proc2 sections that we have now. And it makes it easier to pick the right one from GDB. Mark