[Development] Qt5.2.0/QtCreator3 + GDB 7.6.1-1 problem
Petko Ditchev
pditchev at gmail.com
Sun Dec 1 15:14:24 CET 2013
Hi guys , I hadn't used QtCreator and Qt in a week or two and now
,after I downloaded the RC1, I see that debugging is broken . I tested
gdb from the command line and it works just fine , but in QtCreator it
gets stuck on "Setting breakpoints" (or something like that) and there's
no way to pause the application or to detect segfaults (they get
reported as a break during startup) , while the app itself starts up
normally . Here's my debugging output (I've replaced the project dir
path with ~~~) (my system is manjaro):
sStarting debugger "GdbEngine" for ABI "x86-linux-generic-elf-64bit"...
dStart parameters: 'II' mode: 1
dABI: x86-linux-generic-elf-64bit
dLanguages: c++
dExecutable: ~~~/build-II-Desktop_Qt_5_2_0_GCC_64bit-Debug/II
dDirectory: ~~~/build-II-Desktop_Qt_5_2_0_GCC_64bit-Debug
dDebugger: /usr/bin/gdb
dProject: ~~~/II (built: ~~~/build-II-Desktop_Qt_5_2_0_GCC_64bit-Debug)
dQML server: 127.0.0.1:3768
dRemote: :0
dSysroot:
dDebug Source Location:
dDumper libraries:
/home/p10/Qt5.2.0/5.2.0-rc1/gcc_64//qtc-debugging-helper/
/home/p10/Qt5.2.0/Tools/QtCreator/qtc-debugging-helper/3457954752/
/home/p10/.local/share/data/QtProject/QtCreator/qtc-debugging-helper/3457954752/
dDebugger settings:
dEnableReverseDebugging: false (default: false)
dAllPluginBreakpoints: true (default: true)
dAutoDerefPointers: true (default: true)
dAlwaysAdjustLocalsColumnWidths: false (default: false)
dMaximalStringLength: 10000 (default: 10000)
dListSourceFiles: false (default: false)
dAlwaysAdjustStackColumnWidths: false (default: false)
dShowStandardNamespace: true (default: true)
dShowQtNamespace: true (default: true)
dSortStructMembers: true (default: true)
dQmlInspector.FromQml: false (default: false)
dAlwaysAdjustThreadsColumnWidths: false (default: false)
dAlwaysAdjustModulesColumnWidths: false (default: false)
dShowQmlObjectTree: true (default: true)
dQmlInspector.ShowAppOnTop: false (default: false)
dBreakOnFatal: false (default: false)
dBreakOnAbort: false (default: false)
dAlwaysAdjustRegistersColumnWidths: false (default: false)
dAlwaysAdjustSnapshotsColumnWidths: false (default: false)
dSelectedPluginBreakpointsPattern: .* (default: .*)
dBreakOnThrow: false (default: false)
dBreakOnCatch: false (default: false)
dBreakOnWarning: false (default: false)
dRaiseOnInterrupt: true (default: true)
dUseDebuggingHelper: true (default: true)
dUseCodeModel: true (default: true)
dShowThreadNames: false (default: false)
dCloseBuffersOnExit: false (default: false)
dSwitchModeOnExit: false (default: false)
dBreakpointsFullPath: false (default: false)
dAutoQuit: false (default: false)
dLogTimeStamps: false (default: false)
dVerboseLog: false (default: false)
dUseAlternatingRowColours: false (default: false)
dFontSizeFollowsEditor: false (default: false)
dUseMessageBoxForSignals: true (default: true)
dCDB_Console: false (default: false)
dBreakpointCorrection: true (default: true)
dIgnoreFirstChanceAccessViolation: false (default: false)
dLoadGdbInit: true (default: true)
dSymbolPaths: (default: )
dSourcePaths: (default: )
dBreakEvent: (default: )
dBreakOnCrtDbgReport: false (default: false)
dUseAddressInBreakpointsView: false (default: false)
dUseAddressInStackView: false (default: false)
dAdditionalArguments: (default: )
dUseToolTips: false (default: true) ***
dUseToolTipsInLocalsView: false (default: false)
dUseToolTipsInBreakpointsView: false (default: false)
dUseToolTipsInBreakpointsView: false (default: true) ***
dIdentifyDebugInfoPackages: false (default: false)
dMaximalStackDepth: 20 (default: 20)
dTargetAsync: false (default: false)
dWarnOnReleaseBuilds: true (default: true)
dMultiInferior: false (default: false)
dIntelFlavor: false (default: false)
dGdbPostAttachCommands: (default: )
dWatchdogTimeout: 20 (default: 20)
dAutoEnrichParameters: true (default: true)
dUseDynamicType: true (default: true)
dLoadGdbDumpers: true (default: true)
dAttemptQuickStart: false (default: false)
dGdbStartupCommands: (default: )
dGdbCustomDumperCommands: (default: )
dSelectedPluginBreakpoints: false (default: false)
dAdjustBreakpointLocations: true (default: true)
dAlwaysAdjustBreakpointsColumnWidths: false (default: false)
dNoPluginBreakpoints: false (default: false)
dSkipKnownFrames: false (default: false)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
dQUEUE: SETUP ENGINE
dCALL: SETUP ENGINE
dEXAMINING ~~~/build-II-Desktop_Qt_5_2_0_GCC_64bit-Debug/II
dELF SECTIONS: .interp .note.ABI-tag .note.gnu.build-id .gnu.hash
.dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init
.plt .text .fini .rodata .eh_frame_hdr .eh_frame .gcc_except_table
.init_array .fini_array .jcr .data.rel.ro .dynamic .got .got.plt .data
.bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line
.debug_str .debug_ranges .gdb_index .shstrtab .symtab .strtab
dTRYING TO START ADAPTER
dENABLING TEST CASE: 0
dSTARTING /usr/bin/gdb -i mi --tty=/tmp/QtCreator.rt5507
dGDB STARTED, INITIALIZING IT
<234show version
<235show debug-file-directory
<236set print object on
<237set breakpoint pending on
<238set print elements 10000
<239handle SIGSEGV nopass stop print
<240set unwindonsignal on
<241set width 0
<242set height 0
sSetting up inferior...
<243set substitute-path /var/tmp/qt-src /home/p10/Qt5.2.0/5.2.0-rc1/gcc_64
<244-interpreter-exec console "set auto-solib-add on"
<245pwd
>=thread-group-added,id="i1"
>~"GNU gdb (GDB) 7.6.1\n"
>~"Copyright (C) 2013 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 \"x86_64-unknown-linux-gnu\".\nFor bug
reporting instructions, please see:\n"
>~"<http://www.gnu.org/software/gdb/bugs/>.\n"
>&"show version\n"
>~"GNU gdb (GDB) 7.6.1\n"
>~"Copyright (C) 2013 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 \"x86_64-unknown-linux-gnu\".\nFor bug
reporting instructions, please see:\n"
>~"<http://www.gnu.org/software/gdb/bugs/>.\n"
>234^done
dPARSING VERSION: 234^done
dSUPPORTED GDB VERSION GNU gdb (GDB) 7.6.1
dCopyright (C) 2013 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 "x86_64-unknown-linux-gnu".
dFor bug reporting instructions, please see:
d<http://www.gnu.org/software/gdb/bugs/>.
dGNU gdb (GDB) 7.6.1
dCopyright (C) 2013 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 "x86_64-unknown-linux-gnu".
dFor bug reporting instructions, please see:
d<http://www.gnu.org/software/gdb/bugs/>.
dUSING GDB VERSION: 70601, BUILD: 2013
<246-interpreter-exec console "set target-async off"
<247-interpreter-exec console "python print(sys.version)"
>&"show debug-file-directory\n"
>~"The directory where separate debug symbols are searched for is
\"/usr/lib/debug\".\n"
>235^done
>&"set print object on\n"
>=cmd-param-changed,param="print object",value="on"
>236^done
>&"set breakpoint pending on\n"
>=cmd-param-changed,param="breakpoint pending",value="on"
>237^done
>&"set print elements 10000\n"
>=cmd-param-changed,param="print elements",value="10000"
>238^done
>&"handle SIGSEGV nopass stop print\n"
>~"Signal Stop\tPrint\tPass to program\tDescription\n"
>~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
>239^done
>&"set unwindonsignal on\n"
>=cmd-param-changed,param="unwindonsignal",value="on"
>240^done
>&"set width 0\n"
>=cmd-param-changed,param="width",value="4294967295"
>241^done
>&"set height 0\n"
>242^done
>&"set substitute-path /var/tmp/qt-src
/home/p10/Qt5.2.0/5.2.0-rc1/gcc_64\n"
>243^done
>244^done
>&"pwd\n"
>~"Working directory ~~~/build-II-Desktop_Qt_5_2_0_GCC_64bit-Debug.\n"
>245^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
<248-file-exec-and-symbols
"~~~/build-II-Desktop_Qt_5_2_0_GCC_64bit-Debug/II"
>246^done
>~"2.7.5 (default, Sep 6 2013, 09:55:21) \n[GCC 4.8.1 20130725
(prerelease)]"
>~"\n"
>247^done
>248^done
sSetting breakpoints...
dSetting breakpoints...
dATTEMPT BREAKPOINT SYNCHRONIZATION
dBREAKPOINTS ARE SYNCHRONIZED
<249maint print msymbols /tmp/gdb_ns_.YI5507
>&"maint print msymbols /tmp/gdb_ns_.YI5507\n"
>249^done
dFOUND NON-NAMESPACED QT
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
<250-exec-run
&"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl
for device\n"
>=thread-group-started,id="i1",pid="7465"
sThread group i1 created
dTaking notice of pid 7465
>=thread-created,id="1",group-id="i1"
sThread 1 created
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131201/f6596777/attachment.html>
More information about the Development
mailing list