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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to