[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    Re: GDB can't read core
From:       Daniel Jacobowitz <drow () mvista ! com>
Date:       2003-11-26 22:37:49
Message-ID: 20031126223749.GA11464 () nevyn ! them ! org
[Download RAW message or body]

On Wed, Nov 26, 2003 at 05:34:25PM -0500, Paul Koning wrote:
> >>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic