List Info

Thread: Re: GDB integration problem




Re: GDB integration problem
user name
2007-03-11 04:45:19
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.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: GDB integration problem
country flaguser name
Germany
2007-03-11 15:24:36
On Sunday 11 March 2007 10:45:19 Andreas Pakulat wrote:
> On 10.03.07 13:54:03, Shane R wrote:
> > 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...
>
This information is in the kdevelop FAQ that you obviously
did not read.

--
Amilcar Lucas
KDevelop.org webmaster

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )