This appears to be a bug in QtCreator.  When adding a custom run
configuration, QtCreator uses CDB instead of the toolchain specified
in the build configuration (mingw/gdb in my case).

Generally, I set the DESTDIR and TARGET in the top-level .pro file,
but in this case they are set in an included .pri file, which makes it
such that QtCreator does not set the default run configuration target
correctly ...which is why I was adding a custom run configuration.

The workaround is to move the DESTDIR and TARGET directives to the
top-level .pro file.

Cheers,
~ andy.f



On Sat, Oct 8, 2011 at 5:18 PM, andy fillebrown
<[email protected]> wrote:
> Howdy,
>
> I'm having an issue debugging a single project (other projects work
> fine).  Here's the debugger log ...
>
> sStarting debugger 'CdbEngine' for ABI 'x86-windows-msvc2008-pe-32bit'...
> dStart parameters: 'CsoundQt' mode: 1
> dABI: x86-windows-msvc2008-pe-32bit
> dExecutable: C:\-\home\code\csoundqt\build-d-64\bin\CsoundQt-d-debug.exe
> dDirectory: C:\-\home\code\csoundqt\build-d-64\bin
> dDebugger: M:\bin\gdb.exe
> dProject: C:\-\home\code\csoundqt\qutecsound (built:
> C:\-\home\code\csoundqt\build-d-64)
> dQt: C:\-\usr\bin\qtsdk\Desktop\Qt\4.7.4\mingw
> dQML server: 127.0.0.1:0
> d
> dDebugger settings:
> dUseAlternatingRowColours: false  (default: false)
> dFontSizeFollowsEditor: false  (default: false)
> dUseMessageBoxForSignals: true  (default: true)
> dAutoQuit: false  (default: false)
> dLogTimeStamps: false  (default: false)
> dVerboseLog: true  (default: false)  ***
> dCloseBuffersOnExit: false  (default: false)
> dSwitchModeOnExit: true  (default: false)  ***
> dUseDebuggingHelper: true  (default: true)
> dUseCodeModel: true  (default: true)
> dShowThreadNames: false  (default: false)
> dUseToolTips: false  (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)
> dScriptFile: D:/-/usr/share/scripts/gdb/gdb-startup-script.txt  (default: )  
> ***
> dWatchdogTimeout: 20  (default: 20)
> dTargetAsync: 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)
> dListSourceFiles: true  (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)
> dAlwaysAdjustRegistersColumnWidths: false  (default: false)
> dAlwaysAdjustSnapshotsColumnWidths: false  (default: false)
> dAlwaysAdjustThreadsColumnWidths: false  (default: false)
> dAlwaysAdjustModulesColumnWidths: false  (default: false)
> dState changed from DebuggerNotReady(0) to EngineSetupRequested(1).
> dQUEUE: SETUP ENGINE
> dCALL: SETUP ENGINE
>  Launching M:\bin\gdb.exe -aqtcreatorcdbext.dll -lines -G -c .idle_cmd
> !qtcreatorcdbext.idle
> C:\-\home\code\csoundqt\build-d-64\bin\CsoundQt-d-debug.exe
>  using R:\\lib\qtcreatorcdbext32\qtcreatorcdbext.dll of 9/28/2011 4:33:36 PM.
>  M:\bin\gdb.exe running as 3048
>  CDB exited (1)
> dNOTE: ENGINE SPONTANEOUS SHUTDOWN
> dState changed BY FORCE from EngineSetupRequested(1) to EngineShutdownOk(22).
> dState changed from EngineShutdownOk(22) to DebuggerFinished(23).
> dQUEUE: FINISH DEBUGGER
> dNOTE: FINISH DEBUGGER
> dHANDLE RUNCONTROL FINISHED
> sDebugger finished.
>
>
> --------------
>
> Curiously, CDB is making an appearance in the log even though I'm
> using GDB.  I have no idea why, and it only happens with this one
> project.  Am I doing something wrong?
>
> Cheers,
> ~ andy.f
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to