[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DDD 3.3.7 (i686-pc-linux-gnu)
From: |
Peter Wainwright |
Subject: |
Re: DDD 3.3.7 (i686-pc-linux-gnu) |
Date: |
Mon, 16 Jun 2008 18:00:09 +0100 |
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
> bug-ddd@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-ddd