This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB can't read core
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