User: Password:
|
|
Subscribe / Log in / New account

Merging kdb and kgdb

Merging kdb and kgdb

Posted Feb 18, 2010 9:45 UTC (Thu) by marcH (subscriber, #57642)
Parent article: Merging kdb and kgdb

Debuggers are invaluable to understand bugs in poorly designed or poorly implemented software.

Since Linux is perfectly designed, implemented and documented there is no need for a Linux debugger. Linus is right!


(Log in to post comments)

How code is

Posted Feb 18, 2010 12:54 UTC (Thu) by alex (subscriber, #1355) [Link]

I think Linus' argument is if the code is so hard to follow you can't see
how it ended up in it's final state then that's a problem with the code. The
worry is using debuggers can short circuit understanding the code path and
result in fixes that address the symptom rather than the cause.

I can see the logic although I think he discounts the usefulness of being
able to diagnose system state at failure points. Certainly I'd hate to debug
my user-space code with just a faulting address and register dump at the
fault point.

How code is

Posted Feb 18, 2010 15:37 UTC (Thu) by marcH (subscriber, #57642) [Link]

> although I think he discounts the usefulness of being able to diagnose system state at failure points.

Yes, this is the part that I do not understand. "Debuggers are terrible as a design tool, so... better not use any for investigation?!" That sounds a bit extreme.

Linus prefers not to see any kid playing with sharp knives in the kitchen, since they are only supposed to bake cakes. He is concerned about any blood accidentally polluting the kernel: fair enough. But that does not explain why he, an adult, is also not using any.

Wait: maybe he is secretly using a kernel debugger. Just like any other parent: "do what I say" (not what I do).

maybe he has changed his mind

Posted Feb 18, 2010 15:54 UTC (Thu) by alex (subscriber, #1355) [Link]

Linus isn't totally dogmatic, he has been known to change his mind from time
to time. Rare, but it does happen.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds