[Qt-creator] MinGW GDB not stopping at breakpoints

André Hartmann andre.hartmann at iseg-hv.de
Thu May 23 09:15:59 CEST 2013


Hello,

I have build QtCreator from the 2.8 branch a week ago with MSVC 2010 / 
32bit.

Operating system is Windows 7 64bit.

Yesterday I realized that GDB 7.4 is not breaking. It works perfectly 
with an official Creator 2.7 Installation.

Unfortunately there are no 2.8 builds on builds.qt-project.org at the 
moment, so I can't check these.

Debugger log is attached.

Best regards,
Andre
-------------- next part --------------
sStarting debugger "GdbEngine" for ABI "x86-windows-msys-pe-32bit"...
dStart parameters: 'tests' mode: 1
dABI: x86-windows-msys-pe-32bit
dLanguages: c++ 
dExecutable: X:\S12X\KernelLibrary\build-tests-Desktop_Qt_4_8_2_MinGW-Debug\debug\tests.exe 
dDirectory: X:\S12X\KernelLibrary\build-tests-Desktop_Qt_4_8_2_MinGW-Debug
dDebugger: C:\Qt\qtcreator-gdb-7.4-MINGW32_NT-6.1-i686\gdb-i686-pc-mingw32.exe
dProject: X:\S12X\KernelLibrary\tests (built: X:\S12X\KernelLibrary\build-tests-Desktop_Qt_4_8_2_MinGW-Debug)
dQML server: 127.0.0.1:3768
dRemote: :0
dSysroot: 
dDebug Source Location: /usr/src/debug/qt5base/src/corelib:/usr/src/debug/qt5base/src/gui:/usr/src/debug/qt5base/src/network
dSymbol file: 
dDumper libraries:  C:\Qt\4.8.2\qtc-debugging-helper\ D:\Daten\Tools.qt\build-qtcreator-Desktop_Qt_4_8_2_MSVC_2010-Release\qtc-debugging-helper\128627218\ C:\Users\ah.ISEG\AppData\Local\QtProject\QtCreator\qtc-debugging-helper\128627218\
dDebugger settings: 
dQmlInspector.FromQml: false  (default: false)
dUseAlternatingRowColours: false  (default: false)
dFontSizeFollowsEditor: false  (default: false)
dUseMessageBoxForSignals: true  (default: true)
dAutoQuit: false  (default: false)
dLogTimeStamps: false  (default: false)
dVerboseLog: false  (default: false)
dCloseBuffersOnExit: false  (default: false)
dSwitchModeOnExit: false  (default: false)
dBreakpointsFullPath: false  (default: false)
dRaiseOnInterrupt: true  (default: true)
dUseDebuggingHelper: true  (default: true)
dUseCodeModel: true  (default: true)
dShowThreadNames: false  (default: false)
dUseToolTips: true  (default: false)  ***
dUseToolTipsInLocalsView: false  (default: false)
dUseToolTipsInBreakpointsView: false  (default: false)
dUseAddressInBreakpointsView: false  (default: false)
dUseAddressInStackView: false  (default: false)
dRegisterForPostMortem: false  (default: false)
dLoadGdbInit: true  (default: true)
dLoadGdbDumpers: true  (default: true)
dAttemptQuickStart: false  (default: false)
dGdbStartupCommands:   (default: )
dGdbPostAttachCommands:   (default: )
dWatchdogTimeout: 20  (default: 20)
dAutoEnrichParameters: false  (default: true)  ***
dUseDynamicType: true  (default: true)
dTargetAsync: false  (default: false)
dWarnOnReleaseBuilds: true  (default: true)
dMultiInferior: false  (default: false)
dIntelFlavor: false  (default: false)
dIdentifyDebugInfoPackages: false  (default: false)
dMaximalStackDepth: 20  (default: 20)
dAlwaysAdjustStackColumnWidths: false  (default: false)
dShowStandardNamespace: true  (default: true)
dShowQtNamespace: true  (default: true)
dSortStructMembers: true  (default: true)
dAutoDerefPointers: true  (default: true)
dAlwaysAdjustLocalsColumnWidths: false  (default: false)
dMaximalStringLength: 10000  (default: 10000)
dListSourceFiles: false  (default: false)
dSkipKnownFrames: false  (default: false)
dEnableReverseDebugging: false  (default: false)
dAllPluginBreakpoints: true  (default: true)
dSelectedPluginBreakpoints: false  (default: false)
dAdjustBreakpointLocations: true  (default: true)
dAlwaysAdjustBreakpointsColumnWidths: false  (default: false)
dNoPluginBreakpoints: false  (default: false)
dSelectedPluginBreakpointsPattern: .*  (default: .*)
dBreakOnThrow: false  (default: false)
dBreakOnCatch: false  (default: false)
dBreakOnWarning: false  (default: false)
dBreakOnFatal: false  (default: false)
dBreakOnAbort: true  (default: false)  ***
dAlwaysAdjustRegistersColumnWidths: false  (default: false)
dAlwaysAdjustSnapshotsColumnWidths: false  (default: false)
dAlwaysAdjustThreadsColumnWidths: false  (default: false)
dAlwaysAdjustModulesColumnWidths: false  (default: false)
dShowQmlObjectTree: true  (default: true)
dQmlInspector.ShowAppOnTop: false  (default: false)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
dQUEUE: SETUP ENGINE
dCALL: SETUP ENGINE
dTRYING TO START ADAPTER
dENABLING TEST CASE: 0
dSTARTING C:\Qt\qtcreator-gdb-7.4-MINGW32_NT-6.1-i686\gdb-i686-pc-mingw32.exe -i mi --tty=\\.\pipe\creator-1120-2149
dGDB STARTED, INITIALIZING IT
<28show version
<29show debug-file-directory
<30set print object on
<31set breakpoint pending on
<32set print elements 10000
<33set overload-resolution off
<34handle SIGSEGV nopass stop print
<35set unwindonsignal on
<36set width 0
<37set height 0
<38-interpreter-exec console "set remotecache on"
<39-interpreter-exec console "maintenance set internal-warning quit no"
<40-interpreter-exec console "maintenance set internal-error quit no"
dTHE FOLLOWING COMMAND CHECKS AVAILABLE FEATURES. AN ERROR IS EXPECTED.
<41-interpreter-exec console "disassemble 0 0"
sSetting up inferior...
<42set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.2
<43set substitute-path C:/ndk_buildrepos/qt-desktop/src C:/Qt/4.8.2
<44set substitute-path Q:/qt5_workdir/w/s C:/Qt/4.8.2
<# directory does not exist: /usr/src/debug/qt5base/src/corelib
<# directory does not exist: /usr/src/debug/qt5base/src/gui
<# directory does not exist: /usr/src/debug/qt5base/src/network
<45-interpreter-exec console "set auto-solib-add on"
<46-interpreter-exec console "python print 43"
<47-interpreter-exec console "pwd"
>=thread-group-added,id="i1"
>~"GNU gdb (GDB) 7.4\n"
>~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
>~"This GDB was configured as \"i686-pc-mingw32\".\nFor bug reporting instructions, please see:\n"
>~"<http://www.gnu.org/software/gdb/bugs/>.\n"


>&"show version\n"
>~"GNU gdb (GDB) 7.4\n"
>~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
>~"This GDB was configured as \"i686-pc-mingw32\".\nFor bug reporting instructions, please see:\n"
>~"<http://www.gnu.org/software/gdb/bugs/>.\n"
>28^done
dPARSING VERSION: 28^done
dSUPPORTED GDB VERSION GNU gdb (GDB) 7.4
dCopyright (C) 2012 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
dThis is free software: you are free to change and redistribute it.
dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "i686-pc-mingw32".
dFor bug reporting instructions, please see:
d<http://www.gnu.org/software/gdb/bugs/>.
dGNU gdb (GDB) 7.4
dCopyright (C) 2012 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
dThis is free software: you are free to change and redistribute it.
dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "i686-pc-mingw32".
dFor bug reporting instructions, please see:
d<http://www.gnu.org/software/gdb/bugs/>.
dUSING GDB VERSION: 70400, BUILD: 2012
<48-interpreter-exec console "set target-async off"
<49-interpreter-exec console "set build-id-verbose 2"

>&"show debug-file-directory\n"
>~"The directory where separate debug symbols are searched for is \"x:\\usr\\local\\lib\\debug\".\n"
>29^done

>&"set print object on\n"
>30^done

>&"set breakpoint pending on\n"
>31^done

>&"set print elements 10000\n"
>32^done

>&"set overload-resolution off\n"
>33^done

>&"handle SIGSEGV nopass stop print\n"
>~"Signal        Stop\tPrint\tPass to program\tDescription\n"
>~"SIGSEGV       Yes\tYes\tNo\t\tSegmentation fault\n"
>34^done

>&"set unwindonsignal on\n"
>35^done

>&"set width 0\n"
>36^done

>&"set height 0\n"
>37^done

>38^done

>39^done

>40^done

>&"A syntax error in expression, near `0'.\n"
>41^error,msg="A syntax error in expression, near `0'."

>&"set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.2\n"
>42^done

>&"set substitute-path C:/ndk_buildrepos/qt-desktop/src C:/Qt/4.8.2\n"
>43^done

>&"set substitute-path Q:/qt5_workdir/w/s C:/Qt/4.8.2\n"
>44^done

>45^done

>~"43\n"
>46^done

>~"Working directory X:\\S12X\\KernelLibrary\\build-tests-Desktop_Qt_4_8_2_MinGW-Debug.\n"
>47^done
dENGINE SUCCESSFULLY STARTED
dNOTE: ENGINE SETUP OK
dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master]
dQUEUE: SETUP INFERIOR
dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master]
dQUEUE: SETUP INFERIOR

dCALL: SETUP INFERIOR
<50-file-exec-and-symbols "X:/S12X/KernelLibrary/build-tests-Desktop_Qt_4_8_2_MinGW-Debug/debug/tests.exe"

>48^done

>&"No symbol table is loaded.  Use the \"file\" command.\n"
>49^error,msg="No symbol table is loaded.  Use the \"file\" command."

>50^done
sSetting breakpoints...
dSetting breakpoints...
dATTEMPT BREAKPOINT SYNCHRONIZATION
dTAKING OWNERSHIP OF BREAKPOINT 1 IN STATE 0
<51-break-insert  -f "\"X:/S12X/KernelLibrary/tests/main.c\":16"
dBREAKPOINTS ARE NOT FULLY SYNCHRONIZED

dATTEMPT SYNC
dATTEMPT BREAKPOINT SYNCHRONIZATION
dBREAKPOINTS ARE NOT FULLY SYNCHRONIZED

>&"No source file named X:/S12X/KernelLibrary/tests/main.c.\n"
>51^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="\"X:/S12X/KernelLibrary/tests/main.c\":16",times="0",original-location="\"X:/S12X/KernelLibrary/tests/main.c\":16"}
<52-break-delete 1


>52^done
<53-break-insert  -f "\"X:/S12X/KernelLibrary/tests/main.c\":16"


>&"No source file named X:/S12X/KernelLibrary/tests/main.c.\n"
>53^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="\"X:/S12X/KernelLibrary/tests/main.c\":16",times="0",original-location="\"X:/S12X/KernelLibrary/tests/main.c\":16"}
dATTEMPT BREAKPOINT SYNCHRONIZATION
dBREAKPOINTS ARE SYNCHRONIZED
dALL COMMANDS DONE; INVOKING CALLBACK
<54maint print msymbols C:/Temp/gdb_ns_.uR1120


>&"maint print msymbols C:/Temp/gdb_ns_.uR1120\n"
>54^done
dFOUND NON-NAMESPACED QT
<55-break-insert -f abort
dNOTE: INFERIOR SETUP OK
dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6) [master]
dState changed from InferiorSetupOk(6) to EngineRunRequested(7) [master]
dQUEUE: RUN ENGINE

dCALL: RUN ENGINE
<56-exec-run

 Unity test run 1 of 1
 ..............................................................................
 TEST(kfixflash, compareFlashSector_equal)
     ../tests/kfixsrecord_test.c:380: FAIL:
     Expected 0 Was 6
 ..!...
 TEST(kfixflash, writeOrCompareFlashSector_compare)
     ../tests/kfixsrecord_test.c:421: FAIL:
     Expected 0 Was 6
 .
 TEST(kfixflash, writeOrCompareFlashSector_compareAfterWrite)
     ../tests/kfixsrecord_test.c:428: FAIL:
     Expected 0 Was 6
 ........
 -----------------------
 93 Tests 3 Failures 1 Ignored
 FAIL
>&"Function \"abort\" not defined.\n"
>55^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="abort",times="0",original-location="abort"}

>=thread-group-started,id="i1",pid="3800"
sThread group i1 created
dTaking notice of pid 3800
>=thread-created,id="1",group-id="i1"
sThread 1 created
>~"[New Thread 3800.0xf5c]\n"
s[New Thread 3800.0xf5c]
>56^running
dNOTE: ENGINE RUN AND INFERIOR RUN OK
sRunning.
dState changed from EngineRunRequested(7) to InferiorRunOk(11) [master]
dINFERIOR STARTED
sApplication started
>*running,thread-id="all"
dNOTE: INFERIOR STILL RUNNING IN STATE InferiorRunOk.

>=library-loaded,id="C:\\Windows\\system32\\ntdll.dll",target-name="C:\\Windows\\system32\\ntdll.dll",host-name="C:\\Windows\\system32\\ntdll.dll",symbols-loaded="0",thread-group="i1"
sLibrary C:\Windows\system32\ntdll.dll loaded
>=library-loaded,id="C:\\Windows\\syswow64\\kernel32.dll",target-name="C:\\Windows\\syswow64\\kernel32.dll",host-name="C:\\Windows\\syswow64\\kernel32.dll",symbols-loaded="0",thread-group="i1"
sLibrary C:\Windows\syswow64\kernel32.dll loaded
>=library-loaded,id="C:\\Windows\\syswow64\\KernelBase.dll",target-name="C:\\Windows\\syswow64\\KernelBase.dll",host-name="C:\\Windows\\syswow64\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
sLibrary C:\Windows\syswow64\KernelBase.dll loaded
>=library-loaded,id="C:\\Windows\\syswow64\\msvcrt.dll",target-name="C:\\Windows\\syswow64\\msvcrt.dll",host-name="C:\\Windows\\syswow64\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
sLibrary C:\Windows\syswow64\msvcrt.dll loaded
>=library-loaded,id="C:\\Qt\\4.8.2\\bin\\libgcc_s_dw2-1.dll",target-name="C:\\Qt\\4.8.2\\bin\\libgcc_s_dw2-1.dll",host-name="C:\\Qt\\4.8.2\\bin\\libgcc_s_dw2-1.dll",symbols-loaded="0",thread-group="i1"
sLibrary C:\Qt\4.8.2\bin\libgcc_s_dw2-1.dll loaded
>=breakpoint-modified,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x76108e76",at="<msvcrt!abort+11>",times="0",original-location="abort"}
>=thread-exited,id="1",group-id="i1"
sThread 1 in group i1 exited
>=thread-group-exited,id="i1",exit-code="03"
sThread group i1 exited
>*stopped,reason="exited",exit-code="03"
sApplication exited with exit code exit-code="03"
dNOTE: INFERIOR EXITED
dState changed from InferiorRunOk(11) to InferiorExitOk(16) [master]
dState changed from InferiorExitOk(16) to InferiorShutdownOk(19) [master]
dState changed from InferiorShutdownOk(19) to EngineShutdownRequested(20) [master]
dQUEUE: SHUTDOWN ENGINE

dCALL: SHUTDOWN ENGINE
dPLAIN ADAPTER SHUTDOWN 20
dINITIATE GDBENGINE SHUTDOWN IN STATE 0, PROC: 2
<57-gdb-exit

>57^exit
dGDB CLAIMS EXIT; WAITING
dGDB PROCESS FINISHED, status 0, code 0
dNOTE: ENGINE SHUTDOWN OK
dState changed from EngineShutdownRequested(20) to EngineShutdownOk(22) [master]
dState changed from EngineShutdownOk(22) to DebuggerFinished(23) [master]
dQUEUE: FINISH DEBUGGER
dNOTE: FINISH DEBUGGER
dHANDLE RUNCONTROL FINISHED
sDebugger finished.


More information about the Qt-creator mailing list