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

Reply via email to