Why enforcing sw_breakpoint_from_kind() implementation in GDBserver targets

Maciej W. Rozycki macro@wdc.com
Wed Jun 17 00:40:28 GMT 2020

On Mon, 15 Jun 2020, Metzger, Markus T via Gdb wrote:

> > Note that this would only concern GDBserver, other server implementations
> > of the remote protocol are free to support Z0 or not.  But we could decide
> > that all GDBserver ports have to support it.
> The Intel Graphics architecture uses breakpoint bits inside instructions.  There
> is no single breakpoint opcode as there is INT3 on IA, for example.
> The breakpoint can be ignored one time, which allows stepping over breakpoints
> without having to  remove them.  This obviously only works if the breakpoint bit
> in the original instruction is set and the instruction is not replaced with a fixed
> breakpoint pattern.

 Hmm, it seems to me like a use case for the breakpoint kind.


More information about the Gdb mailing list