<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
When I create the project IIRC I can't choose for debugfull. I used Debug.<br>Can I just grep for Debug and replace that with debugfull?<br><br>Sorry for my ignorance.<br><br>And thanks for your help!<br><br>> Date: Mon, 13 Dec 2010 09:12:39 +0100<br>> From: apaku@gmx.de<br>> To: kdevelop@barney.cs.uni-potsdam.de<br>> Subject: Re: gdb <value optimized out><br>> <br>> On 11.12.10 16:59:27, G VM wrote:<br>> > <br>> > Hi all,<br>> > <br>> > I have been searching for a solution for my problem but unfortunately I 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 integer (probably other data types as well) I get the message <value optimized out>.<br>> > 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 well.<br>> > I did this, cleaned and recompiled the program. But still I have the 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>> Then use "debugfull" as CMake Build Type, thats a special one provided<br>> by FindKDE4Internal.cmake and sets -O0 -g3 explicitly. The<br>> FindKDE4Internal.cmake file is also the culprit of setting -O2 -g in the<br>> cmake commandline. Unfortunately whoever wrote that piece implemented it<br>> in a way that it always overwrites whats set in the cache...<br>> <br>> Andreas<br>> <br>> -- <br>> You will feel hungry again in another hour.<br>> <br>> _______________________________________________<br>> kdevelop mailing list<br>> kdevelop@kdevelop.org<br>> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop<br>                                       </body>
</html>