Re: [Fastboot] Re: Query: Kdump: Core Image ELF Format
From: Eric W. Biederman
Date: Thu Mar 10 2005 - 02:15:44 EST
Dipankar Sarma <dipankar@xxxxxxxxxx> writes:
> On Wed, Mar 09, 2005 at 07:17:49AM -0700, Eric W. Biederman wrote:
> > Beyond that I prefer a little command line tool that will do the
> > ELF64 to ELF32 conversion and possibly add in the kva mapping to
> > make the core dump usable with gdb. Doing it in a separate tool
> > means it is the developer who is doing the analysis who cares
> > not the user who is capturing the system core dump.
> Well, as a kernel developer, I am both :) For me, having to install
> half-a-dozen different command line tools to get and analyze a crash dump
> is a PITA, not to mention potential version mismatches. As someone
> who would like very much to use crash dump for debugging, I would
> much rather be able to force a dump and then use gdb for
> a quick debug. I agree that a customer would see a different
> situation. It would be nice if we can cater to both the kinds.
Crash dumps seem to be a when all else fails kind of solution. Or
something to make a detailed record of what happened so information
can be logged.
I think are differences are largely a matter of emphasis. I worry
about the end user and the whole cycle. For that we need a fixed
simple crash dump format whit no knobs bells or whistles, that can
be given to developers and eventually supported natively by all of
I doubt tweaking gdb so it can handle a 64bit ELF core dump even
on 32bit architectures would be very hard. Once that is in place
the 64->32bit conversion doesn't matter. The virtual addresses
matter a little more although I am more inclined to teach gdb
about the physical and virtual address differences of whole machine
I do agree that the ability to tweak things in the short term
to work like a process that does not have the virtual/physical address
distinction is useful.
The issue of tool versioning problems is bogus. That is solved
by simply picking a good interface between tools and sticking
with it. Occasionally there will be paradigm shifts (like threading)
that will cause change, but generally everything will stay the same.
In addition if tools are distributed together it does not matter,
if there are several of them because there is only one update.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/