RE: Why enforcing sw_breakpoint_from_kind() implementation in GDBserver targets
"Maciej W. Rozycki via Gdb" <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <alpine.LFD.2.21.2006170135340.9519@redsun52.ssa.fujisawa.hgst.com> |
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. Maciej