[Crash-utility] How do I get source listing?

Dave Anderson anderson at redhat.com
Fri Aug 21 19:35:17 UTC 2009


----- "John Steinman" <john.steinman46 at gmail.com> wrote:

> Hi,
> 
> How do I get a code listing from the crash prompt?
> 
> Like the gdb command "gdb list "function_call".
> 
> If anyone knows how to do this please provide me the command syntax.

This works for me:

  crash> gdb list <function>
  ...
  crash> gdb list
  ...
  crash> gdb list
  ...

I can't recall whether it requires the kernel "kernel-devel-<release>" package,
or if just the "kernel-debuginfo-<release>" will suffice -- I've got both
of them installed.

Dave




More information about the Crash-utility mailing list