[RFA] Reverse Debugging, 1/5

Daniel Jacobowitz drow@false.org
Mon Oct 6 21:12:00 GMT 2008


On Mon, Oct 06, 2008 at 02:00:37PM -0700, Michael Snyder wrote:
> It was a design choice.
>
> There were two choices:
> 1) modify target_resume (ops->to_resume), to add a direction
> parameter.
> 2) Add a to_set_direction target method.
>
> The first would have required modifying all existing targets,
> so I chose the second.

The problem is, we're now talking about a multi-process GDB.  It's a
small step from there to one using multiple targets automatically.  Is
core GDB going to have to do the juggling / bookkeeping to keep
direction in sync for all of them?  The granularity will depend on the
backend...

If it's just a matter of changing the existing targets, then avoiding
that on a branch makes sense - but updating everything in the mainline
version makes sense too.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list