Qthreads debugging with ddd.
Posted on 2007-10-04
I am having problems with debugging my Qthreads; I get the message "Couldn't get registers; No such process".
I am using gdb 6.0, and ddd 3.3.11
1) If I set a breakpoint in the thread BEFORE i get to the thread the program dies.
2) If I don't set a breakpoint in the thread, and have the program get to the point where the QThread is running, and then stop to program elsewhere. Then do a:
in ddd: Status (pulldown) -> Threads I get "Couldn't get registers. No such process"
Q1) In some googles, I ran across that "thread support" should be compiled into gdb. I assume it come with it enabled. But now I wonder. How can I find out if my gdb has thread support in it.?
Q2) How do I debug QThreads with ddd?