I'm using MinGW, are there any particulars for upgrading gdb I should know?
It seems like some programs will debug properly and other's won't. I can't find any consistency either, one project will go line by line perfectly, and another that's about equally simple won't.
here's the debug log for one of the ones that refuses to stop at the line I specify:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Users\Verx\Documents\C++\Macro Killer (general)\convert a macro with arguments\
Adding source dir: C:\Users\Verx\Documents\C++\Macro Killer (general)\convert a macro with arguments\
Adding file: bin\Debug\convert a macro with arguments.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 6.7.50.20071127
Function "C:/Users/Verx/Documents/C++/Macro Killer (general)" not defined.
Breakpoint 1 ("C:/Users/Verx/Documents/C++/Macro Killer (general)/convert a macro with arguments/main.cpp:13) pending.
Child process PID: 1800
Program exited normally.
Debugger finished with status 0
and here's the log for one that works properly:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Users\Verx\Documents\C++\OneLine\
Adding source dir: C:\Users\Verx\Documents\C++\OneLine\
Adding file: bin\Debug\OneLine.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 6.7.50.20071127
Child process PID: 6984
At C:/Users/Verx/Documents/C++/OneLine/main.cpp:11
this part seems to show up only in the non-working project:
Function "C:/Users/Verx/Documents/C++/Macro Killer (general)" not defined.
Breakpoint 1 ("C:/Users/Verx/Documents/C++/Macro Killer (general)/convert a macro with arguments/main.cpp:13) pending.
I went through and removed the parenthesis in the file path, since I figured that might in some strange way be messing it up, and I get this now:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Users\Verx\Documents\C++\Macro Killer\convert a macro with arguments\
Adding source dir: C:\Users\Verx\Documents\C++\Macro Killer\convert a macro with arguments\
Adding file: bin\Debug\convert a macro with arguments.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 6.7.50.20071127
No source file named C:/Users/Verx/Documents/C++/Macro Killer/convert a macro with arguments/main.cpp.
Breakpoint 1 ("C:/Users/Verx/Documents/C++/Macro Killer/convert a macro with arguments/main.cpp:13) pending.
Child process PID: 4828
Program exited normally.
Debugger finished with status 0
The hell does it mean there isn't a file named main.cpp.. There definitely is.
And I just realized there's a different debug log you guys want.. here's one running through a more complex program that also refuses to debug properly
PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\java\jdk1.6.0_07\bin\
Command-line: C:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args "bin/Debug/Macro Killer (program).exe"
Working dir : C:\Users\Verx\Documents\C++\Macro Killer\Macro Killer\
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.7.50.20071127
Copyright (C) 2007 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-pc-mingw32".
>>>>>>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 new-console on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> directory C:/Users/Verx/DOCUME~1/C__~1/MACROK~2/MACROK~1/
>>>>>>cb_gdb:
> tbreak "C:/Users/Verx/Documents/C++/Macro Killer/Macro Killer/main.cpp:5"
No source file named C:/Users/Verx/Documents/C++/Macro Killer/Macro Killer/main.cpp.
Breakpoint 1 ("C:/Users/Verx/Documents/C++/Macro Killer/Macro Killer/main.cpp:5) pending.
>>>>>>cb_gdb:
> run
gdb: win32_init_thread_list
Error: dll starting at 0x779b0000 not found.
Error: dll starting at 0x76170000 not found.
Error: dll starting at 0x779b0000 not found.
Error: dll starting at 0x77ae0000 not found.
Program exited normally.
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> quit
Sorry for posting massive blocks of code but I have no idea where this could be coming from.