Re: [RFA] Displaced stepping just enable in non-stop mode

Pedro Alves
2008-10-17T15:05:13Z

On Friday 17 October 2008 11:01:12, Eli Zaretskii wrote:
> > Date: Fri, 17 Oct 2008 13:45:36 +0800
> > From: teawater <teawater@gmail.com>
> > Cc: "Eli Zaretskii" <eliz@gnu.org>, pedro@codesourcery.com,
> > gdb-patches@sourceware.org, brobecker@adacore.com
> >
> > How about "set step displace"
> >
> > I think "displace" is clear.
>
> It isn't clear to me. "Displace" means simply "move forcefully".
> What is actually being moved here is the breakpoint instruction, but
> "set step displace" includes no hints for that.
>
> Maybe "set displace-break-insn" or some such.

I've thought a bit about the "set step ..." suggestion, and I
remembered Michael's "set/show enable-software-singlestep"
command, that could also fit there. So, I guess we could have:

For displaced stepping:

set step over-breakpoint auto (on if there's gdbarch + nonstop support)
set step over-breakpoint displaced/ool/out-of-line
set step over-breakpoint step-and-hold

(or shorter versions)
set step breakpoint out-of-line
set step over-breakpoint ool
set step breakpoint ool

For soft/hard single-stepping:

set step single-step auto
set step single-step hard
set step single-step soft

Or shorter versions:
set step single hard
set step single soft

...

--
Pedro Alves