Different output from -gdb-show than show

Pedro Alves pedro@codesourcery.com
Tue Aug 31 19:08:00 GMT 2010


On Tuesday 31 August 2010 20:03:06, Michael Snyder wrote:
> Pedro Alves wrote:
> > On Tuesday 31 August 2010 19:33:17, Michael Snyder wrote:
> > 
> >> Would this be suitable?
> > 
> > You also need to reset exec_direction back from execution_direction 
> > in set_exec_direction_func.  The set command callbacks are called _after_
> > their controlled variable has already been changed.  See
> > infrun.c:set_non_stop, for example.
> > 
> 
> Hmmm, but "exec_direction" doesn't actually seem to be used anywhere.
> 
> I did try this patch, and after failing to set "reverse", it
> still shows "Forward".
> 
> What am I missing?

That "-gdb-show exec-direction" reads from exec_direction.  See
Marc's original bug report upthread.  :-)

-- 
Pedro Alves



More information about the Gdb mailing list