-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
Hello,
When I was trying to use latest lldb with gdbserver, I came across an issue of not supported feature/packet swbreak in GDB remote protocol.
As far as I understand, without this feature, software breakpoints do not work correctly then using with gdbserver.
On swbreak in gdb manual:
On some architectures, such as x86, at the architecture level, when a breakpoint instruction executes the program counter points at the breakpoint address plus an offset. On such targets, the stub is responsible for adjusting the PC to point back at the breakpoint address.
And this is exactly that (not) happens then I trying to use software breakpoints in this setup,
PC register does not adjusted and program crashes.
Is that intendent behaviour?
Will patches adding this feature be accepted?
Ubuntu 20.04.4 LTS x86_64
llvb version : latest master/main
gdbserver version : GNU gdbserver (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2