Debugger doesn't stop on breakpoints fully, due to unexpected gdb state transitions
-
Im trying to debug a Qt Application with external libraries. During debug in a constructor I try get the debugger to stop on a breakpoint which partially works. Until gdb suddenly switches back into running mode while trying to fill the variables view.
*** UNEXPECTED STATE TRANSITION: Debugger::Internal::DebuggerEngine(0x4e01a90, name = "GdbEngine") "State changed from InferiorStopOk(10) to InferiorRunOk(7)"
>&"python theDumper.fetchVariables({\"autoderef\":1,\"context\":\"\",\"displaystringlimit\":300,\"dyntype\":1,\"expanded\":{\"inspect\":100,\"local\":100,\"return\":100,\"watch\":100},\"fancy\":1,\"formats\":{},\"nativemixed\":0,\"partialvar\":\"\",\"passexceptions\":0,\"qobjectnames\":1,\"resultvarname\":\"\",\"stringcutoff\":10000,\"timestamps\":0,\"token\":31,\"typeformats\":{},\"watchers\":[]})\n" >=thread-created,id="29",group-id="i1" Thread 29 erzeugt. >~"[New Thread 0x7fffc5ffb640 (LWP 37962)]\n" [New Thread 0x7fffc5ffb640 (LWP 37962)] >*running,thread-id="29" dNOTE: INFERIOR RUN OK Läuft.
There is no crosscompiling involved and I do not experience this behavior with a minimal example.
I use following setup (with two different qtcreator versions just as a test)
qtcreator ( 11.0 a86356ce8a / 12.0 Rev 27055e4c39 )gdb GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0Any hints how to debug this further are welcome...
-
Im trying to debug a Qt Application with external libraries. During debug in a constructor I try get the debugger to stop on a breakpoint which partially works. Until gdb suddenly switches back into running mode while trying to fill the variables view.
*** UNEXPECTED STATE TRANSITION: Debugger::Internal::DebuggerEngine(0x4e01a90, name = "GdbEngine") "State changed from InferiorStopOk(10) to InferiorRunOk(7)"
>&"python theDumper.fetchVariables({\"autoderef\":1,\"context\":\"\",\"displaystringlimit\":300,\"dyntype\":1,\"expanded\":{\"inspect\":100,\"local\":100,\"return\":100,\"watch\":100},\"fancy\":1,\"formats\":{},\"nativemixed\":0,\"partialvar\":\"\",\"passexceptions\":0,\"qobjectnames\":1,\"resultvarname\":\"\",\"stringcutoff\":10000,\"timestamps\":0,\"token\":31,\"typeformats\":{},\"watchers\":[]})\n" >=thread-created,id="29",group-id="i1" Thread 29 erzeugt. >~"[New Thread 0x7fffc5ffb640 (LWP 37962)]\n" [New Thread 0x7fffc5ffb640 (LWP 37962)] >*running,thread-id="29" dNOTE: INFERIOR RUN OK Läuft.
There is no crosscompiling involved and I do not experience this behavior with a minimal example.
I use following setup (with two different qtcreator versions just as a test)
qtcreator ( 11.0 a86356ce8a / 12.0 Rev 27055e4c39 )gdb GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0Any hints how to debug this further are welcome...
@StVO
Debugger visualizer is falling over (apparently) while trying to do something like display your localVmb...
variables. I think the empty pane to the right (Name/Wert/Typ) is your Local Variables window, can you close it/select an option not to display it? Might then let you proceed. Usual issue is something to do with debug information/code in external library. Make sure everything is right version and if possible compiled for debug.