gdb <value optimized out>
radub82 at gmail.com
Mon Dec 13 00:06:47 GMT 2010
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.
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.
> 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.
> 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!
More information about the KDevelop