QtCreator gdb timeout

  • Hi,

    I've got a pretty annoying issue wile debugging program is running fine but QtCreator failed "to launch" gdb. Its always return "gdb timeout".

    Ubuntu 13.10
    Qt Creator 3.0.1
    GNU gdb (GDB) 7.7 with python 2.7+ support
    g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1

    Debug log:
    sStarting debugger "GdbEngine" for ABI "x86-linux-generic-elf-64bit"...
    dStart parameters: 'untitled1' mode: 1
    dABI: x86-linux-generic-elf-64bit
    dLanguages: c++
    dExecutable: /home/stima/build-untitled1-Desktop_Qt_5_2_1_GCC_64bit_gdb_4_7-Debug/untitled1 [terminal]
    dDirectory: /home/stima/build-untitled1-Desktop_Qt_5_2_1_GCC_64bit_gdb_4_7-Debug
    dDebugger: /usr/local/bin/gdb
    dProject: /home/stima/untitled1 (built: /home/stima/build-untitled1-Desktop_Qt_5_2_1_GCC_64bit_gdb_4_7-Debug)
    dQML server:
    dRemote: :0
    dDebug Source Location:
    dDumper libraries: /home/stima/Qt/5.2.1/gcc_64//qtc-debugging-helper/ /home/stima/Qt/Tools/QtCreator/qtc-debugging-helper/1466853358/ /home/stima/.local/share/data/QtProject/QtCreator/qtc-debugging-helper/1466853358/
    dDebugger settings:
    dIdentifyDebugInfoPackages: false (default: false)
    dMaximalStackDepth: 20 (default: 20)
    dGdbStartupCommands: (default: )
    dGdbCustomDumperCommands: (default: )
    dLoadGdbDumpers: true (default: true)
    dAttemptQuickStart: false (default: false)
    dAutoEnrichParameters: true (default: true)
    dUseDynamicType: true (default: true)
    dGdbPostAttachCommands: (default: )
    dWatchdogTimeout: 20 (default: 20)
    dBreakEvent: (default: )
    dBreakOnCrtDbgReport: false (default: false)
    dSymbolPaths: (default: )
    dSourcePaths: (default: )
    dIgnoreFirstChanceAccessViolation: false (default: false)
    dLoadGdbInit: true (default: true)
    dCDB_Console: false (default: false)
    dBreakpointCorrection: true (default: true)
    dUseToolTipsInBreakpointsView: false (default: false)
    dUseToolTipsInBreakpointsView: false (default: true) ***
    dUseToolTips: true (default: true)
    dUseToolTipsInLocalsView: false (default: false)
    dAdditionalArguments: (default: )
    dUseAddressInBreakpointsView: false (default: false)
    dUseAddressInStackView: false (default: false)
    dSwitchModeOnExit: false (default: false)
    dBreakpointsFullPath: false (default: false)
    dCloseBuffersOnExit: true (default: false) ***
    dUseCodeModel: true (default: true)
    dShowThreadNames: false (default: false)
    dRaiseOnInterrupt: true (default: true)
    dUseDebuggingHelper: true (default: true)
    dFontSizeFollowsEditor: false (default: false)
    dUseMessageBoxForSignals: true (default: true)
    dUseAlternatingRowColours: true (default: false) ***
    dLogTimeStamps: false (default: false)
    dVerboseLog: false (default: false)
    dAutoQuit: false (default: false)
    dShowQmlObjectTree: true (default: true)
    dQmlInspector.ShowAppOnTop: false (default: false)
    dAlwaysAdjustThreadsColumnWidths: false (default: false)
    dAlwaysAdjustModulesColumnWidths: false (default: false)
    dQmlInspector.FromQml: false (default: false)
    dBreakOnCatch: false (default: false)
    dBreakOnWarning: false (default: false)
    dSelectedPluginBreakpointsPattern: .* (default: .*)
    dBreakOnThrow: false (default: false)
    dAlwaysAdjustRegistersColumnWidths: false (default: false)
    dAlwaysAdjustSnapshotsColumnWidths: false (default: false)
    dBreakOnFatal: false (default: false)
    dBreakOnAbort: false (default: false)
    dAllPluginBreakpoints: true (default: true)
    dSkipKnownFrames: false (default: false)
    dEnableReverseDebugging: false (default: false)
    dAlwaysAdjustBreakpointsColumnWidths: false (default: false)
    dNoPluginBreakpoints: false (default: false)
    dSelectedPluginBreakpoints: false (default: false)
    dAdjustBreakpointLocations: true (default: true)
    dShowQtNamespace: true (default: true)
    dSortStructMembers: true (default: true)
    dAlwaysAdjustStackColumnWidths: false (default: false)
    dShowStandardNamespace: true (default: true)
    dMaximalStringLength: 10000 (default: 10000)
    dListSourceFiles: false (default: false)
    dAutoDerefPointers: true (default: true)
    dAlwaysAdjustLocalsColumnWidths: false (default: false)
    dMultiInferior: false (default: false)
    dIntelFlavor: false (default: false)
    dTargetAsync: false (default: false)
    dWarnOnReleaseBuilds: true (default: true)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
    dEXAMINING /home/stima/build-untitled1-Desktop_Qt_5_2_1_GCC_64bit_gdb_4_7-Debug/untitled1
    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 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_str .gdb_index .shstrtab .symtab .strtab

    Thanks for any help

  • The standard timeout is 20 seconds. It happens that gdb takes longer than that, e.g. when reading a lot of debug info. In that case, press the "Give GDB more time" button. If it happens regularly you can increase the timeout in the debugger settings.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.