deb http://apt.jenslody.de/ any dbg
deb-src http://apt.jenslody.de/ any dbg
Give your feedback on this version only in this thread, don't mix it with the regular nightly please.
p.s. please use the topic for the nightly that has the bug...
Please give more details...
What is your gdb version?
Can you replicate the problem in a simpler project?
Can you provide the debugger's debug logs in both versions or a backtrace of the freeze?
Can you hide your callstack/backtrace window and try again?
p.s. please use the topic for the nightly that has the bug...
As I've said in the other thread, what is the encoding of your string?
It seems you're not understanding what I'm writing you, but it is OK.
PATH=.;D:\wxMSW-2.8.10\lib\gcc_dll;C:\MinGW_441\bin;C:\FkClnt1\USER;C:\FkClnt1\SYSTEM;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;F:\Borland\CBUILD~1\Bin;F:\Borland\CBUILD~1\Projects\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\IVT Corporation\BlueSoleil\Mobile;D:\Qt\4.5.2\qt\bin;C:\Program Files\Cppcheck\;C:\Program Files\Calibre2\;D:\Мои документы\Borland Studio Projects\Bpl;D:\wxMSW-2.8.10\lib\gcc_dll;D:\Project\FB205_emb;D:\Qt\4.5.2\qt\bin;C:\MinGW_441\mingw32\bin
Command-line: C:\MinGW_441\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/DebugTest.exe
Working dir : D:\Proba\DebugTest\
> set prompt >>>>>>cb_gdb:
Reading symbols from D:\Proba\DebugTest/bin/Debug/DebugTest.exe...
done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory D:/Proba/DebugTest/
>>>>>>cb_gdb:
> break "D:/Proba/DebugTest/DebugTestMain.cpp:84"
Breakpoint 2 at 0x402019: file D:\Proba\DebugTest\DebugTestMain.cpp, line 84. (2 locations)
>>>>>>cb_gdb:
> run
gdb: windows_init_thread_list
[New Thread 3612.0xbf0]
LOAD_DLL_DEBUG_EVENT)
Breakpoint 2, DebugTestDialog::DebugTestDialog (this=0x22fb14, parent=0x0, id=-1) at D:\Proba\DebugTest\DebugTestMain.cpp:84
D:\Proba\DebugTest\DebugTestMain.cpp:84:3282:beg:0x402cfd
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> info locals
StaticText1Font = {
<wxFontBase> = {
<wxGDIObject> = {
<wxObject> = {
_vptr.wxObject = 0x673f1bc8,
static ms_classInfo = {
m_className = 0x673024a6 L"wxObject",
m_objectSize = 8
,
m_objectConstructor = 0,
m_baseInfo1 = 0x0,
m_baseInfo2 = 0x0,
static sm_first = 0x673f6050,
m_next = 0x673f9eb0,
static sm_classTable = 0x5329a8
},
m_refData = 0xb58e58
},
members of wxGDIObject:
static ms_classInfo = {
m_className = 0x67342b14 L"wxGDIObject",
m_objectSize = 8,
m_objectConstructor = 0x66f0544a <wxGDIObject::wxCreateObject()>,
m_baseInfo1 = 0x673f9e30,
m_baseInfo2 = 0x0,
static sm_first = 0x673f6050,
m_next = 0x6741f820,
static sm_classTable = 0x5329a8
}
},
members of wxFontBase:
static ms_encodingDefault = wxFONTENCODING_SYSTEM
},
members of wxFont:
static ms_classInfo = {
m_className = 0x6731b040 L"wxFont",
m_objectSize = 8,
m_objectConstructor = 0x66e3780a <wxFont::wxCreateObject()>,
m_baseInfo1 = 0x6741f6c0,
m_baseInfo2 = 0x0,
static sm_first = 0x673f6050,
m_next = 0x673fb1b8,
static sm_classTable = 0x5329a8
}
}
test = {
<wxStringBase> = {
static npos = 4294967295,
m_pchData = 0x530000 L"\310\000"
}, <No data fields>}
i = 2498315
>>>>>>cb_gdb:
> info args
this = 0x22fb14
parent = 0x0
id = -1
>>>>>>cb_gdb:
> next
D:\Proba\DebugTest\DebugTestMain.cpp:85:3319:beg:0x402d10
>>>>>>cb_gdb:
> info locals
StaticText1Font = {
<wxFontBase> = {
<wxGDIObject> = {
<wxObject> = {
_vptr.wxObject = 0x673f1bc8,
static ms_classInfo = {
m_className = 0x673024a6 L"wxObject",
m_objectSize = 8,
m_objectConstructor = 0,
m_baseInfo1 = 0x0,
m_baseInfo2 = 0x0,
static sm_first = 0x673f6050,
m_next = 0x673f9eb0,
static sm_classTable = 0x5329a8
},
m_refData = 0xb58e58
},
members of wxGDIObject:
static ms_classInfo = {
m_className = 0x67342b14 L"wxGDIObject",
m_objectSize = 8,
m_objectConstructor = 0x66f0544a <wxGDIObject::wxCreateObject()>,
m_baseInfo1 = 0x673f9e30,
m_baseInfo2 = 0x0,
static sm_first = 0x673f6050,
m_next = 0x6741f820,
static sm_classTable = 0x5329a8
}
},
members of wxFontBase:
static ms_encodingDefault = wxFONTENCODING_SYSTEM
},
members of wxFont:
static ms_classInfo = {
m_className = 0x6731b040 L"wxFont",
m_objectSize = 8,
m_objectConstructor = 0x66e3780a <wxFont::wxCreateObject()>,
m_baseInfo1 = 0x6741f6c0,
m_baseInfo2 = 0x0,
static sm_first = 0x673f6050,
m_next = 0x673fb1b8,
static sm_classTable = 0x5329a8
}
}
test = {
<wxStringBase> = {
static npos = 4294967295,
m_pchData = 0xb580bc L"Проба"
}, <No data fields>}
i = 2498315
>>>>>>cb_gdb:
> info args
this = 0x22fb14
parent = 0x0
id = -1
>>>>>>cb_gdb:
PATH=.;D:\wxMSW-2.8.10\lib\gcc_dll;C:\MinGW_441\bin;C:\FkClnt1\USER;C:\FkClnt1\SYSTEM;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;F:\Borland\CBUILD~1\Bin;F:\Borland\CBUILD~1\Projects\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\IVT Corporation\BlueSoleil\Mobile;D:\Qt\4.5.2\qt\bin;C:\Program Files\Cppcheck\;C:\Program Files\Calibre2\;D:\Мои документы\Borland Studio Projects\Bpl;D:\wxMSW-2.8.10\lib\gcc_dll;D:\Project\FB205_emb;D:\Qt\4.5.2\qt\bin;C:\MinGW_441\mingw32\bin
Command-line: C:\MinGW_441\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/DebugTest.exe
Working dir : D:\Proba\DebugTest\
> set prompt >>>>>>cb_gdb:
Reading symbols from D:\Proba\DebugTest/bin/Debug/DebugTest.exe...done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set print elements -1
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory D:/Proba/DebugTest/
>>>>>>cb_gdb:
> break "D:/Proba/DebugTest/DebugTestMain.cpp:84"
Breakpoint 2 at 0x402019: file D:\Proba\DebugTest\DebugTestMain.cpp, line 84. (2 locations)
>>>>>>cb_gdb:
> run
gdb: windows_init_thread_list
[New Thread 1044.0xdd8]
Breakpoint 2, DebugTestDialog::DebugTestDialog (this=0x22fb14, parent=0x0, id=-1) at D:\Proba\DebugTest\DebugTestMain.cpp:84
D:\Proba\DebugTest\DebugTestMain.cpp:84:3282:beg:0x402cfd
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> whatis &test
type = wxString *
>>>>>>cb_gdb:
> output /c test.m_pchData[0]@((wxStringData*)test.m_pchData - 1)->nDataLength
Cannot access memory at address 0x52fff8
>>>>>>cb_gdb:
> next
D:\Proba\DebugTest\DebugTestMain.cpp:85:3319:beg:0x402d10
>>>>>>cb_gdb:
> whatis &test
type = wxString *
>>>>>>cb_gdb:
> output /c test.m_pchData[0]@((wxStringData*)test.m_pchData - 1)->nDataLength
{31 '\037', 64 '@', 62 '>', 49 '1', 48 '0'}>>>>>>cb_gdb:
output /c test.m_pchData[0]@((wxStringData*)test.m_pchData - 1)->nDataLength
> p test.m_pchData[0]@((wxStringData*)test.m_pchData - 1)->nDataLength
Find the gdb_types.script and remove the function call which registers the wxString handling, after that it will probably work correctly.totally agree!!!
For best results you'll need the python pretty printers for wxWidgets...
with rev7017 I have no problems. 7040_deb does not show local variables(http://forums.codeblocks.org/index.php?action=dlattach;topic=14334.0;attach=5344;image). shows only those variables that I added. change the script does not work as a result of just an empty string. The results of python pretty printers for wxWidgets do not fall into the Watches (7040_deb)With rev7017 you'll have the same problem, when you use "add watch" ...
Local vars are useful, but a bit limiting and at the moment are not implemented in the debuggers branch...
p.s. we are talking about the automatic local variables, you can watch local variables but you should add them manually...
//in Evaluate_wxString change
local result = _T("output /c ") + a_str + oper + _T("m_pchData[") + start + _T("]@");
//to
local result = _T("output /s ") + a_str + oper + _T("m_pchData[") + start + _T("]@");
function Parse_wxString(a_str, start)
{
local result = a_str;
return result;
}
source C:\MinGW_441\bin\wx.gdb
set print element 0
kernel event for pid=3096 tid=fc8 code=EXCEPTION_DEBUG_EVENT)IMHO, all these prompts are not interesting but just before the debugger stops at my breakpoint because that var's condition.
e=EXCEPTION_DEBUG_EVENT)
ContinueDebu
gEvent (cpid=3096, ctid=fc8, DBG_CONTINUE);
INUE);
tid=fc8 code=EXCEPTION_DEBUG_EVENT)
c8, DBG_CONTINUE);
for pid=3096 tid=fc8 code=EXCEPTION_DEBUG_EVENT)
EBUG_EVENT)
3096, ctid=fc8, DBG_CONTINUE);
ernel event for pid=3096 tid=fc8 code=EXCEPTION_DEBUG_EVENT)
=EXCEPTION_DEBUG_EVENT)
nt for pid=3096 tid=fc8 code=EXCEPTION_DEBUG_EVENT)
ContinueDebug
Event (cpid=3096, ctid=fc8, DBG_CONTINUE);
NUE);
tid=fc8 code=EXCEPTION_DEBUG_EVENT)
C
ontinueDebugEvent (cpid=3096, ctid=fc8, DBG_CONTINUE);
8, DBG_CONTINUE);
>>>>>>cb_gdb:I searched for this in the web. I found a possible gdb's bug about
> next
Warning:
Cannot insert breakpoint -127.
Error accessing memory address 0x7816cd30: Input/output error.
Cannot insert breakpoint -126.
Error accessing memory address 0x7c343646: Input/output error.
>>>>>>cb_gdb:
> next
Warning:
Cannot insert breakpoint -131.
Error accessing memory address 0x7816cd30: Input/output error.
#include <iostream>
using namespace std;
int main()
{
int var, res=0;
for (var=0; var<1000; var++)
res +=var; //set breakpoint here
cout << res;
return 0;
}
mingw32-g++.exe -Wall -fexceptions -g -IC:\MinGW\include -c C:\PROGS\pruebas\hello\main.cpp -o obj\Debug\main.oI set the breakpoint and edit it's properties:
mingw32-g++.exe -LC:\MinGW\lib -o bin\Debug\hello.exe obj\Debug\main.o
Información: se resuelve std::cout al enlazar con __imp___ZSt4cout (auto-importación
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: aviso: la importación automática se activó sin especificar --enable-auto-import en la línea de órdenes.
Esto debe funcionar a menos que involucre estructuras de datos constantes que referencíen símbolos de DLLs auto-importadas.
)
Output size is 37.44 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings (0 minutes, 1 seconds)
Building to ensure sources are up-to-dateAnd the long output (I skip my long PATH):
Selecting target:
Debug
Adding source dir: C:\PROGS\pruebas\hello\
Adding source dir: C:\PROGS\pruebas\hello\
Adding file: bin\Debug\hello.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.2
Child process PID: 2760
Program exited normally.
Debugger finished with status 0
Command-line: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/hello.exeAs you can see, it doesn't stop!
Working dir : C:\PROGS\pruebas\hello\
> set prompt >>>>>>cb_gdb:
Reading symbols from C:\PROGS\pruebas\hello/bin/Debug/hello.exe...done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set print elements -1
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set new-console on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source C:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory C:/PROGS/pruebas/hello/
>>>>>>cb_gdb:
> break "C:/PROGS/pruebas/hello/main.cpp:6"
Breakpoint 2 at 0x4013d6: file C:\PROGS\pruebas\hello\main.cpp, line 6.
>>>>>>cb_gdb:
> condition 2 var==10
>>>>>>cb_gdb:
> run
gdb: windows_init_thread_list
[New Thread 488.0x604]
Program exited normally.
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> quit
p.s. don't use localized compiler it can confuse C::BThis is a very interesting note to advise to every one using C:B and MinGW.
Quotep.s. don't use localized compiler it can confuse C::BThis is a very interesting note to advise to every one using C:B and MinGW.
I used MinGW-Get. If I recall well, it installs localization automatically.
I assume the localization issue is due to the fact that C::B does pattern matching on the errors / warnings that gcc/g++ outputs and that it does this pattern matching based on the English translations?That's correct.