This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch] -var-evaluate-expression NAME [FORMAT]
On Wed, Jan 23, 2008 at 09:29:31AM -0500, Marc Khouzam wrote:
> I hadn't thought of temporarily setting var->format, instead of passing 'format'
> everywhere. Much easier! Is there any way that varob_get_value() could not return?
> Like a failed gdb_assert? Or are we sure that var->format will be reset to
> the old format properly no matter what happens to varobj_get_value?
It may be possible - take a look at GDB's "cleanup" mechanism to
handle this safely.
--
Daniel Jacobowitz
CodeSourcery