GDB integration problem
Andreas Pakulat
apaku at gmx.de
Sun Mar 11 09:45:19 UTC 2007
On 10.03.07 13:54:03, Shane R wrote:
> gdb /home/shane/workspace/neatl/BIN/neatl -fullname -quiet
> If I run GDB from the command line it can find the file. If I run a simpler
> test project the breakpoint works. What the &^*^&*^ is going on? I am quite
> new to Linux development so I am sure it is something very stupid that I am
> doing.
>
> Below is my makefile. Don't laugh if I am doing anything really stupid. I
> have gone over every line of it and verifed that all the files are where the
> makefile believes they are. Also the program compiles and runs. Just GDB
> when run via KDevelop can't find them!! I am using KDevelop 3.3.4 in Gnome
> Ubuntu.
>
> INCLUDES = #-I/usr/include/g++-2
>
> #DEBUG
> #CFLAGS = -g -Wall -Wno-return-type $(INCLUDES)
>
> #RELEASE
> CFLAGS = -o3 -O3 -march=pentium4 -ffast-math -funroll-loops $(INCLUDES)
You shouldn't use -O3 for debugging your app. Use -g3 -O0 else you will
get weird results when trying to debug...
Andreas
--
So this is it. We're going to die.
More information about the KDevelop-devel
mailing list