[Lldb-commits] [lldb] [LLDB] Add a way to avoid manual stepping over breakpoints when resuming (PR #165760)
Walter Erquinigo via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 30 12:42:11 PDT 2025
walter-erquinigo wrote:
> > > Is there anyway we can add a test for this behavior? Maybe something in https://github.com/llvm/llvm-project/blob/main/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationTest.cpp?
> > > It would be nice to have something that shows we never send the "disable-singlstep-enable" packets for the breakpoint when this feature is enabled.
> >
> >
> > I did explore this, but I couldn't find a reasonable way. Code paths that do stepping + breakpoints require a full lldb-server in the test.
>
> You might be able to write a test using the fake gdb-server method employed by the GDBRemoteTestBase derived tests in `functionalities/gdb_remote_client`. You would make a fake session which says it doesn't need stepping over breakpoints, then fake hitting a breakpoint and then continue in lldb and assert that you didn't get the breakpoint removal packet before the `c` packet.
thank you!! I'll try that
https://github.com/llvm/llvm-project/pull/165760
More information about the lldb-commits
mailing list