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

Daniel Jacobowitz drow@false.org
Wed Jan 23 14:42:00 GMT 2008


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



More information about the Gdb-patches mailing list