gdb <value optimized out>
G VM
drums_gvm at hotmail.com
Mon Dec 13 00:11:28 GMT 2010
-g3 was proposed by some other people because at first I thought -O0 did still give me <value optimized out>.
This was actually because of -O2 also being specified.
I will try with -ggdb and keep you updated.
> From: radub82 at gmail.com
> To: kdevelop at kdevelop.org
> Subject: Re: gdb <value optimized out>
> Date: Mon, 13 Dec 2010 02:06:47 +0200
>
> I never used -g3 and still got enough information, I'm also a gentoo user but
> use -ggdb, also if the value you're looking for is in some external library
> you might want to add -ggdb to your CFLAGS and rebuild the library, probably
> using FEATURES="splitdebug" not to pollute your system with that info.
>
> Best regards
>
> On Saturday, December 11, 2010 17:59:27 G VM wrote:
> > Hi all,
> >
> > I have been searching for a solution for my problem but unfortunately I
> > didn't find a solution.
> >
> > Problem:
> > When I start my compiled program with gdb and want to print the value of an
> > integer (probably other data types as well) I get the message <value
> > optimized out>. I am a gentoo user so I am aware that -O exists.
> > So I went searching in KDevelop on how to configure this.
> >
> > I changed some flags in the "Open Options", "Advanced settings" to use -O0.
> >
> > CMAKE_CXX_FLAGS
> >
> > CMAKE_CXX_FLAGS_DEBUG
> >
> > CMAKE_C_FLAGS
> >
> > CMAKE_C_FLAGS_DEBUG
> > ...
> >
> > And on the kdevelop forum I found a thread which mentioned using -g3 as
> > well. I did this, cleaned and recompiled the program. But still I have the
> > same result.
> >
> > I really have no clue anymore what I am doing wrong.
> > Anyone has an idea about this?
> >
> > I use:
> >
> >
> > Version 4.0.2 (using KDevPlatform 1.0.2)
> > Using KDE Development Platform 4.4.5 (KDE 4.4.5)
> > Program I want to compile to debug is Krdc.
> >
> > Thanks in advance for your help!
>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20101213/d62b1c33/attachment.html>
More information about the KDevelop
mailing list