This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to solve gdb <value optimized out> problem?


Hey,

> I am trying debug gcc 4.5.0 use gdb on ubuntu
>
> and encounter the problem by seeing "value optimized out".  as fellow:

Did you get this behavior even with the -O0 GCC build? Basically, GDB
tells you what's wrong with the executable. For a short explanation, check
this page (http://www.cs.utk.edu/~vose/c-stuff/onlinedocs/gdb_7.html) and
search for "value optimized out".

I made the experience that using -O0 shouldn't produce the "value
optimized out" problem, because the code is not optimized.

Andi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]