[Solved]: Can GDB debug itself?

Problem Detail: Can GDB be run on itself? How or why not? I see something about it http://www.math.utah.edu/docs/info/gdbint_3.html But GDB might not be written in a language that it can debug?

Asked By : Dac Saunders

Answered By : Dave Clarke

Yes, it’s possible. Here’s how to do it.

  1. Obtain the source code for gdb.
  2. Compile with the -g flag on.
  3. Run gdb gdb.
Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/9308  Ask a Question  Download Related Notes/Documents