Slashdot Mirror


Inside the Linux kernel debugger

An anonymous reader writes "Here's a good article that shows you how to install and set up the kernel debugger (KDB) to trace Linux kernel execution and examine memory and data structures. The best part is, you don't need a separate machine for debugging."

7 of 28 comments (clear)

  1. Beos was better. by Anonymous Coward · · Score: 2, Interesting

    BeOS had a nifty debugger that you dropped into instead of BSOD. you could do all sorts of fun things, and it even allowed modules to be loaded to add new debug commands.

  2. The article .. by damaru · · Score: 2, Insightful

    is more of a Intoduction to KDB then an inside thing.

  3. Visual debuggers by ObviousGuy · · Score: 4, Interesting

    I have no doubt that KDB is a powerful debugger, but having a GUI would make it even better, IMO.

    This probably comes from my own experience with OS debuggers and Application debuggers (windbg, VC++/Borland C++). Being able to get immediate feedback about program state without having to enter arcane commands is a definite boon.

    Are there any GUI wrappers available for KDB?

    --
    I have been pwned because my /. password was too easy to guess.
    1. Re:Visual debuggers by weicco · · Score: 2, Interesting

      SoftIce ported on Linux/Unix would be grrrreat. I refused to write any driver code until I got myself a SoftIce in dev-computer at my last job :) Unfortunately SoftIce costs more than family wagon I think.

      --
      You don't know what you don't know.
    2. Re:Visual debuggers by kruntiform · · Score: 2, Insightful

      Huh? All he's saying is that GUI-fied debuggers are nicer than console ones. I've used windbg (one of the ones he mentions) to write and debug kernel-mode drivers on NT. I don't see why you think he hasn't a clue. Just because you use Linux doesn't mean you know everything there is to know about computers!

    3. Re:Visual debuggers by kruntiform · · Score: 2, Insightful

      No, no, debuggers can have GUIs. Kernels can't have GUIs. "Windoze" people generally have strange view of computing? Are you really that much of a zealot, or have I just been trolled?

  4. Much easier to use User-Mode Linux by Ristretto · · Score: 2, Interesting

    We're doing OS research here (UMass) with Linux, and unless you have very specialized needs, you're far better off using User-Mode Linux. By running Linux as a user-process, you don't have to worry about bringing down your machine and you can use gdb to do your debugging.