[Qt-creator] GDB Debug helper
Lars Amsel
lars.amsel at signalion.com
Thu Oct 15 14:14:14 CEST 2009
Hi,
as all the trolls were so exited about the new QtCreator I decided to give it a
new try, even if it doesn't fit all my need (pure svn support, no autoformat to
match the coding guidelines of our company). Especially the debugger should work
much better then the one from the eclipse integration because of the build in
support for the private helpers from the Qt classes.
Unfortunately I can't get it work.
My system is:
*WinXP
*Qt MinGW-4.5.2
*QtCreator 1.3 beta
*gdb 6.8
I build the helper with the button in the config. The log says:
---8<---8<---
Building debugging helper library in
C:/qt/qtcreator-1.2.92/qtc-debugging-helper/136550930/
Running c:\programme\qt-mingw\4.5.2\bin\qmake.exe ...
Running C:/mingw.3.4/bin/mingw32-make.exe ...
C:/mingw.3.4/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory
`C:/qt/qtcreator-1.2.92/qtc-debugging-helper/136550930'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DUSE_QT_GUI=1 -DHAS_QOBJECT_P_H -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -I"..\..\..\..\Programme\Qt-MinGW\4.5.2\include\QtCore"
-I"..\..\..\..\Programme\Qt-MinGW\4.5.2\include\QtGui"
-I"..\..\..\..\Programme\Qt-MinGW\4.5.2\include"
-I"..\..\..\..\Programme\Qt-MinGW\4.5.2\include\ActiveQt" -I"debug"
-I"..\..\..\..\Programme\Qt-MinGW\4.5.2\mkspecs\win32-g++" -o debug\gdbmacros.o
gdbmacros.cpp
gdbmacros.cpp:276: warning: 'bool <unnamed>::couldBePointer(const void*)'
defined but not used
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -shared -mthreads -Wl
-Wl,--out-implib,debug\libgdbmacros.a -o debug\gdbmacros.dll debug/gdbmacros.o
-L"c:\Programme\Qt-MinGW\4.5.2\lib" -lQtGuid4 -lQtCored4
Creating library file: debug\libgdbmacros.a
mingw32-make.exe[1]: Leaving directory
`C:/qt/qtcreator-1.2.92/qtc-debugging-helper/136550930'
---8<---8<---
When I start a debug process, the helper could not be loaded, because of missing
access privileges (see log below). I work as an unprivileged user. Running the
same as admin works without problems. The qtc-debugging-helper folder and all
contained files (especially the helper dll) are owned by the unprivileged user.
Any hints?
regards Lars
---8<---8<---
dState changed from <unknown>(-1) to DebuggerNotReady(0).
d0x3fec800x00x37313483
sStarting debugger for tool chain 'MinGW'...
dDebugger settings:
dUseAlternatingRowColours: false (default: false)
dUseMessageBoxForSignals: true (default: true)
dAutoQuit: false (default: false)
dLogTimeStamps: false (default: false)
dUseDebuggingHelper: true (default: true)
dUseCustomDebuggingHelperLocation: false (default: false)
dCustomDebuggingHelperLocation: (default: )
dDebugDebuggingHelpers: false (default: false)
dUseToolTips: false (default: false)
dUseToolTipsInLocalsView: false (default: false)
dUseToolTipsInBreakpointsView: false (default: false)
dUseAddressInBreakpointsView: false (default: false)
dUseAddressInStackView: false (default: false)
dLocation: gdb (default: gdb)
dEnvironment: (default: )
dScriptFile: (default: )
dMaximalStackDepth: 20 (default: 20)
dListSourceFiles: false (default: false)
dSkipKnownFrames: false (default: false)
dEnableReverseDebugging: false (default: false)
dAllPluginBreakpoints: true (default: true)
dSelectedPluginBreakpoints: false (default: false)
dNoPluginBreakpoints: false (default: false)
dSelectedPluginBreakpointsPattern: .* (default: .*)
dD:/Dokumente und Einstellungen/amsel/Eigene
Dateien/workspaces/APIv2/debug_win32/SequenceComposer.exe0x3fec80
dState changed from DebuggerNotReady(0) to EngineStarting(1).
dState changed from EngineStarting(1) to AdapterStarting(2).
dState changed from AdapterStarting(2) to AdapterStarted(3).
dState changed from AdapterStarted(3) to InferiorPreparing(5).
dTRYING TO START ADAPTER
dADAPTER SUCCESSFULLY STARTED, PREPARING INFERIOR
<1-file-exec-and-symbols "D:/Dokumente und Einstellungen/amsel/Eigene
Dateien/workspaces/APIv2/debug_win32/SequenceComposer.exe"
>~"GNU gdb 6.8\n"
>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
>~"This is free software: you are free to change and redistribute it.\n"
>~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n"
>~"and \"show warranty\" for details.\n"
>~"This GDB was configured as \"i686-pc-mingw32\".\n"
dState changed from InferiorPreparing(5) to InferiorPrepared(6).
sInferior prepared for startup.
sSetting breakpoints...
>1^done
dINFERIOR PREPARED
<2show version
<3set print static-members off
<4set breakpoint pending on
<5set print elements 10000
<6-data-list-register-names
<7set overload-resolution off
<8handle SIGSEGV nopass stop print
<9set unwindonsignal on
<10set width 0
<11set height 0
sStarting inferior...
dState changed from InferiorPrepared(6) to InferiorStarting(9).
dState changed from InferiorStarting(9) to InferiorRunningRequested(11).
sContinuing after temporary stop.
>&"show version\n"
>~"GNU gdb 6.8\n"
>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
>~"This is free software: you are free to change and redistribute it.\n"
>~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n"
>~"and \"show warranty\" for details.\n"
>~"This GDB was configured as \"i686-pc-mingw32\".\n"
>2^done
dVERSION: 2^done,{logstreamoutput="show version\n",consolestreamoutput="GNU gdb
6.8\nCopyright (C) 2008 Free Software Foundation, Inc.\nLicense 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.\nThis GDB was configured as \"i686-pc-mingw32\".\n"}
d
dGDB VERSION: 60800, BUILD: 0
>&"set print static-members off\n"
>3^done
>&"set breakpoint pending on\n"
>4^done
>&"set print elements 10000\n"
>5^done
>6^done,register-names=["eax","ecx","edx","ebx","esp","ebp","esi","edi","eip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","mxcsr","mm0","mm1","mm2","mm3","mm4","mm5","mm6","mm7"]
>&"set overload-resolution off\n"
>7^done
>&"handle SIGSEGV nopass stop print\n"
>~"Signal Stop\tPrint\tPass to program\tDescription\n"
>~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
>8^done
>&"set unwindonsignal on\n"
>9^done
>&"set width 0\n"
>10^done
>&"set height 0\n"
>11^done
<12-exec-run
dState changed from InferiorRunningRequested(11) to InferiorRunning(12).
sRunning...
sInferior started.
d05656
>12^running
dINFERIOR STARTED
>~"[New thread 5656.0x161c]\n"
dFOUND PID 5656
dDumper loading
(C:/qt/qtcreator-1.2.92/qtc-debugging-helper/136550930/debug/gdbmacros.dll)
failed: OpenProcess failed: Zugriff verweigert
d
dOpenProcess failed: Zugriff verweigert
More information about the Qt-creator-old
mailing list