From: Luke Dunstan <coder_infidel@ho...> - 2003-04-11 03:13:06
>From: "Lorne Easton" <leaston@...>
>Subject: [Mingw-users] GDB and GVD - hopefully not OT
>Date: Fri, 11 Apr 2003 12:33:16 +1000
>Just a little issue that I have noticed the last couple of times that I
>have used GVD which is probably an issue either with gdb or the way my
>makefile is structured.
>c++ -g -c lib.cpp -o lib.o
>c++ -g main.cpp lib.o -o test.exe
>I can see the source file "lib.cpp", but I cannot see the entry point (e.g:
>main.cpp). Compining main into an obj and linking it later does not seem to
>fix it either.
>What's the deal?
When I use those commands, then type "gdb test", it works fine when I type
"list main.cpp:1". I am using GCC 3.2.2 and GDB 5.2.1 so if you are using
older versions then you should probably try updating because several people
have commented that debugging is much improved in the latest GCC/GDB
versions. Typing "info sources" in GDB also lists main.cpp so it seems to be
a GVD bug.
Hotmail now available on Australian mobile phones. Go to