Re: [RFC] [Crash-utility] Patch to use gdb's bt in crash - works great with kgdb! - KGDB in Linus Kernel.



On Wed, 30 Aug 2006 14:41:32 -0700 Piet Delaney wrote:

On Wed, 2006-08-30 at 16:40 -0400, Vivek Goyal wrote:
On Wed, Aug 30, 2006 at 12:35:21PM -0700, Piet Delaney wrote:

Simple question -- and to be quite honest with you -- I don't
understand why you wouldn't want to simply use gdb alone
in this case?

I don't see any reason for core file not to be read correctly by
gdb. It's convenient to use gdb directly sometimes, for example
while using the ddd GUI.


You can run gdb to open core files as of today but the debugging
capability will be limited. For ex. kernel core headers have the info
of linearly mapped region only and they don't contain the virt address
info of non-linearly mapped regions. So one can not debug the non-linearly
mapped regions like modules.

Amit's modified gdb might help for that problem. I haven't used
it but it allows gdb to load debug information about modules. You
can also use a script Amit wrote to explicitly load module info
into stock gdb; that also might work with kernel core files.


kgdb isn't having any problems with kernel threads back traces.
The kernel objects are tweaked with dwarf code, but I see no
problem with using the same paradigm with crash. Works great.


Can you give some more details on what do you mean by kernel objects
are tweaked with dwarf code.

Attached is the cfi_annotations.patch patch from the kgdb-2.6.16 patch
which is part of the kgdb patch series. I believe George Anzinger used
a similar dwarf patch in the 2.6 mm series patches that Andrew provided.
I think Tom Rini wrote both of them.

ENOPATCH

---
~Randy
-
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/



Relevant Pages

  • Re: Solaris Core --Signal 9 --not able to find anything useful
    ... but as i m not expert in this it is helpless ... also i am able to view number of threads (in core files using gdb and ... followings are some detail about gdb output, ... it will pick user processes to kill. ...
    (comp.unix.programmer)
  • Re: I need the contents of shared memory regions in core dumps
    ... or mmap'ed) to be written into my core files? ... to do post-mortem with gdb, I can inspect the dodgy data that caused ... 1) change the policy of the operating system kernel, ...
    (comp.os.linux.development.apps)
  • [opensuse] Problem with core file format in openSUSE 10.2 ?
    ... I do software development with gcc, and am used to using gdb to analyse ... The core files appear to be in ELF format, but maybe something that gdb expects is missing. ... I haven't changed anything in my code, or Makefiles, or gcc option settings, when moving from Suse 10.1 to 10.2. ...
    (SuSE)
  • using perl for corefiles..
    ... are there any perl modules for getting traces ... from core files or interact with gdb? ...
    (perl.beginners)
  • Re: [PATCH] kdump: Fix for boot problems on SMP
    ... Thanks for the patch and I tried it. ... Booting processor 1/1 eip 2000 ... gdb gets killed since there is not enough memory. ... I will send out an updated documentation ...
    (Linux-Kernel)