================ @@ -0,0 +1,36 @@ +import lldb +from lldbsuite.test.lldbtest import * +from lldbsuite.test.decorators import * +from lldbsuite.test.gdbclientutils import * +from lldbsuite.test.lldbgdbclient import GDBRemoteTestBase + + +class TestReadMemory(GDBRemoteTestBase): + def test_x_with_prefix(self): + class MyResponder(MockGDBServerResponder): + def qSupported(self, client_features): + return super().qSupported(client_features) + ";binary-upload+" + + def x(self, addr, length): + return "bfoobar" if addr == 0x1000 else "E01" ---------------- DavidSpickett wrote:
If you wanted to be even more clear, you could stub `m` as well and error. Test would fail anyway if we did call `m` though, it won't get the right value back. https://github.com/llvm/llvm-project/pull/124733 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits