lkml.org 
[lkml]   [2002]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [QUESTION] which kernel debugger is "best"?
Date
On Fri, 29 Mar 2002 19:18:39 -0800, 
Andrew Morton <akpm@zip.com.au> wrote:
>Jeremy Jackson wrote:
>>
>> What are people using?
>
>kgdb. Tried kdb and (sorry, Keith), it's not in the same
>league. Not by miles.

kdb and kgdb are aimed at different debugging environments. kgdb
requires a second machine containing the kernel compiled with -g, kdb
lets you debug directly on the machine that failed, with or without
compiling with -g. Almost all the differences flow from that design
decision.

Another important niggle to me is that kgdb requires the kernel to be
compiled with frame pointers, because that is all that gdb understands.
On ix86 the extra register pressure from dedicating ebp to frame
pointers can cause Heisenbugs. kdb works with and without frame
pointers.

Can kgdb handle the special hard wired calls that do not add frame
pointers, such as __down_failed? I doubt that gdb knows how to handle
those.

I am not knocking kgdb, it has its place. I see a spectrum of
debugging tools from UML through kgdb to kdb, each tool is aimed at a
different debugging environment. Pick the right tool.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site