Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Crash Utility (http://www.linux-archive.org/crash-utility/)
-   -   crash without namelist? (http://www.linux-archive.org/crash-utility/250709-crash-without-namelist.html)

Jun Koi 02-23-2009 09:06 AM

crash without namelist?
 
Hi,

It seems that currently crash doesnt work without a namelist file?

But I think sometimes we only have the System.map file in hand,
without the namelist. Can we do anything with that? Because in many
cases only some restricted operations are enough to debug the crashed
dump.

Thanks,
Jun

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility

Dave Anderson 02-23-2009 01:22 PM

crash without namelist?
 
----- "Jun Koi" <junkoi2004@gmail.com> wrote:

> Hi,
>
> It seems that currently crash doesnt work without a namelist file?

Currently??? Never has, never will...

>
> But I think sometimes we only have the System.map file in hand,
> without the namelist. Can we do anything with that? Because in many
> cases only some restricted operations are enough to debug the crashed
> dump.

The basic design of the crash utility is that it is essentially
a huge wrapper around the embedded gdb module, taking advantage
of gdb's allowance of an alternative user interface. So during
initialization, crash calls into the embedded gdb's main() function,
passing it the vmlinux file as an argument, and control comes back
to the crash code through gdb's command_loop_hook pointer.

Even if the basic code flow were re-written, again, making it a
completely different design, there are just so many requirements
that need structure member offsets in order to get off the ground,
I don't want to even bother thinking about them all. Look at any
of the per-architecture *_init(POST_GDB) functions, and try to
envision crash running running without the offsets that it needs.

Dave

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility


All times are GMT. The time now is 10:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.