User forums > General (but related to Code::Blocks)

Cannot evaluate function -- may be inlined

<< < (4/8) > >>

smallB:
@Morten, I don't want to go into discussion who's fault is it when debugger doesn't show value of a variable (assuming that I set the settings in debugger correctly). It's just waste of time.
This is output from cb when string is used:
http://imageshack.us/photo/my-images/513/cannotevaluate1.png/

smallB:
@Neil, that looks good! What settings am I suppose to set in order to "have what you've got"?

zabzonk:
@smallB:

That is just an ordinary debug build, with no optimisations, using the CB debug nightly, SVN 7452. The version of GCC I use is TDM 4.6.1 and the version of GDB is 7.3 - the one that comes with the TDM GCC build.

Note that the GCC optimiser is very aggressive, and does not know anything about "debug builds". If you have any optimisations enabled at all, then all the code in main() will probably be removed, whether you have debug info enabled with -g or not.

smallB:
@Neil, thanks for your reply. Neil, I have cb 7550, and gcc ver same as yours. I've checked compiler settings and they are checked(see three images for - project settings, compiler_settings_general and debugger_settings):
http://imageshack.us/photo/my-images/171/compilersettingsglobal.png/
http://imageshack.us/photo/my-images/13/projectcompilersettings.png/
http://imageshack.us/photo/my-images/600/debuggersettings.png/

zabzonk:
@smallB:

Yes, but what about these settings http://imgur.com/Kym4P ? All of them should be unchecked.

Also, the image of the code you posted in response to Morten is different from the code I am responding about. You have now posted at least three different chunks of code. Please identify, once and for all, which one you are asking about - and please make it simple, and compilable with no external dependencies.




Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version