Problem z DBG + C::B

0

Nie mogę z chiny zdebugować programu, za każdym razem mam to samo. Miał ktoś taki program i wie jak go rozwiązać?

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Release
Adding source dir: ......\Program Files\CodeBlocks\MinGW
Adding source dir: D:\kompilacja\other\draw
Adding source dir: D:\kompilacja\other\draw
Adding file: bin\Release\draw.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: 21308
Program received signal SIGTRAP, Trace/breakpoint trap.
In ntdll!DbgUiConnectToDbg () (C:\WINDOWS\system32\ntdll.dll)

0

Selecting target:
Release
Debugujesz binarkę z Release? Budujesz z flagą -g?

0

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ę

0
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

1 użytkowników online, w tym zalogowanych: 0, gości: 1