xkpit napisał(a)
No tak, niefortunnie się złożyło, prócz nazewnictwa projekt ma ustawione niezbędne flagi aby działał na nim debug
Tak mam ustawioną flagę -g
pozostawiam symbole
nie optymalizuję
Już znalazłem problem (z mojej winy), biblioteki nie zawierały symboli debug-ujących. Natomiast pojawił się kolejny problem. Dla sample ribbon debug działa idealnie, natomiast dla mojego własnego projektu mam dziwaczny wpis:
PATH=...
Command-line: d:\Program Files\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/tst.exe
Working dir : D:\kompilacja\other\EmulatorTransponderow\
> set prompt >>>>>>cb_gdb:
Reading symbols from D:\kompilacja\other\EmulatorTransponderow/bin/Debug/tst.exe...
done.
(gdb) >>>>>>cb_gdb:
...
>>>>>>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 D:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory D:/kompilacja/other/EmulatorTransponderow
>>>>>>cb_gdb:
> directory F:/wxWidgets-2.9.1
>>>>>>cb_gdb:
> directory F:/wxWidgets-2.9.1/include
>>>>>>cb_gdb:
> directory F:/wxWidgets-2.9.1/src
>>>>>>cb_gdb:
> directory D:/kompilacja/other/EmulatorTransponderow/
>>>>>>cb_gdb:
> break "D:/kompilacja/other/EmulatorTransponderow/tstMain.cpp:732"
No source file named D:/kompilacja/other/EmulatorTransponderow/tstMain.cpp.
Breakpoint 2 ("D:/kompilacja/other/EmulatorTransponderow/tstMain.cpp:732) pending.
>>>>>>cb_gdb:
> run
gdb: windows_init_thread_list
[New Thread 800.0xa90]
i to jest zastanawiające:
**
>>>>>>cb_gdb:
> break "D:/kompilacja/other/EmulatorTransponderow/tstMain.cpp:732"
No source file named D:/kompilacja/other/EmulatorTransponderow/tstMain.cpp.
Breakpoint 2 ("D:/kompilacja/other/EmulatorTransponderow/tstMain.cpp:732) pending.
>>>>>>cb_gdb:
**
Na ustawionej pułapce nie mm przechwycenia, nie widać brekpoint'u