Re: [Patch] -var-evaluate-expression NAME [FORMAT]

Daniel Jacobowitz
2008-01-23T14:42:13Z

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