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