[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 16 10:48:37 PDT 2024
medismailben wrote:
> I adapted the code from here
>
> https://github.com/llvm/llvm-project/blob/a62768c427ec1f34d7c3823021a6c5a794709103/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py#L516
>
> into `lldbgdbproxy.py`:
> ```
> + lldb_server_exe = lldbgdbserverutils.get_lldb_server_exe()
> + if lldb_server_exe is None:
> + self.debug_monitor_exe = lldbgdbserverutils.get_debugserver_exe()
> + self.assertTrue(self.debug_monitor_exe is not None)
> + self.debug_monitor_extra_args = []
> + else:
> + self.debug_monitor_exe = lldb_server_exe
> + self.debug_monitor_extra_args = ["gdbserver"]
> ```
>
> That's supposed to select `debugserver` when `lldb_server` is not available. I guess that isn't working. Should it work?
This didn't work because we also build `lldb-server` on macOS. I tried to fix it by detecting if the current platform is a `Darwin` one which got me further. Now I get a `ChecksumMismatch` exception. I've attached both my fix and the test runs here:
[fix-reverse-continue-macos.patch](https://github.com/user-attachments/files/17400634/fix-reverse-continue-macos.patch)
[TestReverseContinueBreakpoints.py.log](https://github.com/user-attachments/files/17400579/TestReverseContinueBreakpoints.py.log)
https://github.com/llvm/llvm-project/pull/112079
More information about the lldb-commits
mailing list