[Qt-creator] Possible bug in QT Creator 1.2, debugger not working
Robert Caldecott
robert.caldecott at gmail.com
Tue Jun 30 13:50:25 CEST 2009
I built a version of Qt 4.5.2 using MSVC9 this morning and am
experimenting with CDB. I had to rebuild the debugging helpers to get
them to work, but for some reason QMaps do not use the helpers. I
tested QString and QByteArray and they seem to work fine. Is this a
known issue? My debug log follows at the end of this message (no
mention of the QMap I created). My sample app looks like this (with a
breakpoint on the a.exec() line).
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QString str = "Hello, world!";
qDebug() << str;
QByteArray bytes = "Hello, world!";
qDebug() << bytes;
QMap<QString, QString> map;
map["Hello"] = "world!";
qDebug() << map;
return a.exec();
}
status:Starting Debugger
status:Starting Debugger
cdb:CommandLine: "C:\Documents and Settings\Robert Caldecott\My
Documents\Qt\QtVC\debug\QtVC.exe"
cdb:
cdb:Starting directory: C:/Documents and Settings/Robert Caldecott/My
Documents/Qt/QtVC/debug
cdb:
status:Running...
status:Debugger running
error:The call to LoadLibrary(
error:
error:ext
error:
error:) failed,
error:
error:Win32 error 0n2
error:
error:"
error:
error:The system cannot find the file specified.
error:
error:"
error:Please check your debugger configuration and/or network access.
error:
error:The call to LoadLibrary(
error:
error:uext
error:
error:) failed,
error:
error:Win32 error 0n2
error:
error:"
error:
error:The system cannot find the file specified.
error:
error:"
error:Please check your debugger configuration and/or network access.
error:
cdb:Symbol search path is:
cdb:
cdb:*** Invalid ***
cdb:
warning:****************************************************************************
warning:* Symbol loading may be unreliable without a symbol search
path. *
warning:* Use .symfix to have the debugger choose a symbol path.
*
warning:* After setting your symbol path, use .reload to refresh
symbol locations. *
warning:****************************************************************************
warning:
cdb:Executable search path is: C:\Documents and Settings\Robert
Caldecott\My Documents\Qt\QtVC\debug
cdb:
cdb:ModLoad: 00400000 00410000 QtVC.exe
cdb:
status:Running...
cdb:ModLoad: 7c900000 7c9b2000 ntdll.dll
cdb:
cdb:ModLoad: 7c800000 7c8f6000 C:\WINDOWS\system32\kernel32.dll
cdb:
cdb:ModLoad: 65000000 65bb3000 C:\Qt\4.5.2-vc\qt\bin\QtGuid4.dll
cdb:
status:Loading the custom dumper library
'C:\Qt\4.5.2-vc\qt\qtc-debugging-helper\debug\gdbmacros.dll'
(injection) ...
cdb:ModLoad: 77f10000 77f59000 C:\WINDOWS\system32\GDI32.dll
cdb:
cdb:ModLoad: 7e410000 7e4a1000 C:\WINDOWS\system32\USER32.dll
cdb:
cdb:ModLoad: 763b0000 763f9000 C:\WINDOWS\system32\COMDLG32.dll
cdb:
cdb:ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
cdb:
cdb:ModLoad: 77e70000 77f02000 C:\WINDOWS\system32\RPCRT4.dll
cdb:
cdb:ModLoad: 77fe0000 77ff1000 C:\WINDOWS\system32\Secur32.dll
cdb:
cdb:ModLoad: 773d0000 774d3000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
cdb:
cdb:ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
cdb:
cdb:ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
cdb:
cdb:ModLoad: 7c9c0000 7d1d7000 C:\WINDOWS\system32\SHELL32.dll
cdb:
cdb:ModLoad: 77120000 771ab000 C:\WINDOWS\system32\OLEAUT32.dll
cdb:
cdb:ModLoad: 774e0000 7761d000 C:\WINDOWS\system32\ole32.dll
cdb:
cdb:ModLoad: 76390000 763ad000 C:\WINDOWS\system32\IMM32.dll
cdb:
cdb:ModLoad: 76b40000 76b6d000 C:\WINDOWS\system32\WINMM.dll
cdb:
cdb:ModLoad: 73000000 73026000 C:\WINDOWS\system32\WINSPOOL.DRV
cdb:
cdb:ModLoad: 67000000 67341000 C:\Qt\4.5.2-vc\qt\bin\QtCored4.dll
cdb:
cdb:ModLoad: 71ab0000 71ac7000 C:\WINDOWS\system32\WS2_32.dll
cdb:
cdb:ModLoad: 71aa0000 71aa8000 C:\WINDOWS\system32\WS2HELP.dll
cdb:
cdb:ModLoad: 10480000 10557000
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCP90D.dll
cdb:
cdb:ModLoad: 10200000 10323000
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCR90D.dll
cdb:
cdb:ModLoad: 629c0000 629c9000 C:\WINDOWS\system32\LPK.DLL
cdb:
cdb:ModLoad: 74d90000 74dfb000 C:\WINDOWS\system32\USP10.dll
cdb:
cdb:ModLoad: 552f0000 55325000 C:\PROGRA~1\Sophos\SOPHOS~1\SOPHOS~1.DLL
cdb:
cdb:ModLoad: 76bf0000 76bfb000 C:\WINDOWS\system32\PSAPI.DLL
cdb:
cdb:ModLoad: 6bd00000 6bd09000 C:\WINDOWS\system32\avaudio32.dll
cdb:
cdb:ModLoad: 10000000 1015a000
C:\Qt\4.5.2-vc\qt\qtc-debugging-helper\debug\gdbmacros.dll
cdb:
dumper:Loaded the custom dumper library
'C:\Qt\4.5.2-vc\qt\qtc-debugging-helper\debug\gdbmacros.dll'
(injection).
cdb:ModLoad: 5ad70000 5ada8000 C:\WINDOWS\system32\uxtheme.dll
cdb:
cdb:ModLoad: 74720000 7476c000 C:\WINDOWS\system32\MSCTF.dll
cdb:
warning:*** WARNING: Unable to verify checksum for
warning:
warning:C:\Program Files\Utimaco\SafeGuard Easy\SgMsgBhk.dll
warning:
warning:
warning:
cdb:ModLoad: 004b0000 004b6000 C:\Program Files\Utimaco\SafeGuard
Easy\SgMsgBhk.dll
cdb:
cdb:ModLoad: 77c00000 77c08000 C:\WINDOWS\system32\version.dll
cdb:
cdb:ModLoad: 755c0000 755ee000 C:\WINDOWS\system32\msctfime.ime
cdb:
cdb:Breakpoint 0 hit
cdb:
status:Stopped.
status:Initializing dumpers...
cdb:Thread is set up for call, 'g' will execute.
cdb:WARNING: This can have serious side-effects,
cdb:including deadlocks and corruption of the debuggee.
cdb:
cdb:.call returns:
cdb:
cdb:void *
cdb:
cdb:
cdb:
cdb:0x10029150
cdb:
cdb:
cdb:
dumper:Custom dumper library initialized.
dumper:39 known types, Qt version: 4.5.2, Qt namespace: <none>
dumper:Querying dumpers for 'bytes'/'local.bytes' (QByteArray)
cdb:Thread is set up for call, 'g' will execute.
cdb:WARNING: This can have serious side-effects,
cdb:including deadlocks and corruption of the debuggee.
cdb:
cdb:.call returns:
cdb:
cdb:void *
cdb:
cdb:
cdb:
cdb:0x10029150
cdb:
cdb:
cdb:
dumper:Querying dumpers for 'str'/'local.str' (QString)
cdb:Thread is set up for call, 'g' will execute.
cdb:WARNING: This can have serious side-effects,
cdb:including deadlocks and corruption of the debuggee.
cdb:
cdb:.call returns:
cdb:
cdb:void *
cdb:
cdb:
cdb:
cdb:0x10029150
cdb:
cdb:
cdb:
2009/6/29 Andre Poenitz <andre.poenitz at mathematik.tu-chemnitz.de>:
> On Mon, Jun 29, 2009 at 06:53:11PM +0100, Robert Caldecott wrote:
>> This is a fix for the issue I reported when the debugging helpers stop
>> working when gdb is restarted? FWIW I have since installed 1.2 on 2
>> other PCs in the office and I get the same issue, so if this can be
>> backported to 1.2 then I'll be very grateful.
>
> Yes, I think that one would be covered, too.
>
> There was a problem of some values not being properly re-initialized
> when starting the debugger a second time.
>
> Andre'
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
More information about the Qt-creator-old
mailing list