Re: DDD 3.3.7 (i686-pc-linux-gnu)

Peter Wainwright <[email protected]> Mon, 16 Jun 2008 18:00:09 +0100
Newsgroups gmane.comp.debugging.ddd.bugs
Message-ID <1213635609.7483.8.camel@localhost>
On Mon, 2008-06-16 at 16:17 +0800, Subrat Sahani (RBEI/ECM2) wrote:
> Hello,
>  
> I am unable to see strings value while debugging.
>  
> E.g. string a_oObj;
> I use p a_oObj.c_str()
> It says Cannot evaluate function -- may be inlined
>  
> Can you please specify some solution to see string values?

DDD is no more than a graphical interface to the underlying command-line
debugger, GDB.  The message you see comes from GDB.

GDB cannot call a function or method if it is not present in the
executable, for example if it has been inlined.  If you recompile your
program without optimization, i.e. with compiler flags "-g -O0", you
should be able to prevent inlining and get a method you can call.

Peter
>  
> Thanks in Advance,
>  
> Best Regards,
> Subrat
>  
> _______________________________________________
> bug-ddd mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bug-ddd