Skip to content

LLDB: GDB remote protocol feature/packet swbreak not supported  #56125

@ByteNacked

Description

@ByteNacked

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions