[Lldb-commits] [lldb] [lldb] Change lldb's breakpoint handling behavior (PR #96260)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 8 01:41:11 PDT 2024


DavidSpickett wrote:

> Thanks @DavidSpickett just to be sure, this is armv7 right, not AArch32?

This is an AArch32 container on Armv8. I'm not sure if lldb-server knows the difference though. Maybe it doesn't need to, and ptrace single step is done in the kernel which uses the h/w step.

But it looks like it may software single step on any Arm, v7 and v8...

> debugserver uses the hardware breakpoint because we know we have that feature on our armv7 darwin cores, but it looks like lldb-server on armv7 linux will be entirely software based.

> I don't know how much lldb distinguishes between AArch32 and armv7, but this is one important difference.

The single step code you posted doesn't seem to make a distinction. This is perhaps why we saw armv7 style behaviour on AArch32.

https://github.com/llvm/llvm-project/pull/96260


More information about the lldb-commits mailing list