From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3288 invoked by alias); 26 Nov 2003 22:37:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3281 invoked from network); 26 Nov 2003 22:37:51 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 26 Nov 2003 22:37:51 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AP8I9-0002zu-7h; Wed, 26 Nov 2003 17:37:49 -0500 Date: Wed, 26 Nov 2003 22:37:00 -0000 From: Daniel Jacobowitz To: Paul Koning Cc: sawitt@electra.rsc.raytheon.com, gdb@sources.redhat.com Subject: Re: GDB can't read core Message-ID: <20031126223749.GA11464@nevyn.them.org> Mail-Followup-To: Paul Koning , sawitt@electra.rsc.raytheon.com, gdb@sources.redhat.com References: <16325.10163.916133.242883@gargle.gargle.HOWL> <20031126222925.GB5007@nevyn.them.org> <16325.10865.878988.114821@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16325.10865.878988.114821@gargle.gargle.HOWL> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00276.txt.bz2 On Wed, Nov 26, 2003 at 05:34:25PM -0500, Paul Koning wrote: > >>>>> "Daniel" == Daniel Jacobowitz writes: > > Daniel> On Wed, Nov 26, 2003 at 05:22:43PM -0500, Paul Koning wrote: > >> Last I looked at this (in 5.3) there was a general presumption in > >> gdb that it would never support core dump reading in any > >> cross-gdb. > >> > >> I beat on it for a while to get rid of that assumption; it was not > >> totally trivial but not all that hard, either. But it was a bit > >> of a hack job, so I'm not prepared to submit the resulting changes > >> as gdb patches. > >> > >> Is this considered the Right Way for it to behave? Or is this a > >> deficiency that's awaiting fixing in some grand overhaul? > > Daniel> It's been fixed for almost every GNU/Linux target already, as > Daniel> people find time. > > Ah... In my case, the problem appeared with NetBSD/MIPS. Then I recommend investigating mips-linux-tdep.c and bfd/elf32-mips.c:elf32_mips_grok_psinfo, and it should be the work of an hour or so to do it more cleanly in current sources. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer