This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] set/show enable-software-singlestep
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Michael Snyder <msnyder at specifix dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 24 Jun 2008 16:29:38 -0300
- Subject: Re: [RFA] set/show enable-software-singlestep
- References: <1214331534.3601.1211.camel@localhost.localdomain>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
On Tue, 2008-06-24 at 11:18 -0700, Michael Snyder wrote:
> There may be cases where gdb would be inclined to use
> software singlestep, but you might not want it to. Examples:
>
> * "target remote" to a target such as a simulator that
> would be able to support normal singlestep.
>
> * reverse debugging, where you can't predict the
> "come-from" address of a jump instruction.
>
> What do you guys think? Useful?
It's a useful feature and looks OK. I'm just wondering how dangerous it
would be to turn software single stepping off on PPC64 and stumble upon
an atomic sequence and end up locked there (we use software single
stepping explicitly to jump those sequences).
Regards,
Luis