From c5f47c6fd2cd9a5d13d20bee2ac7211b28d233e7 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Thu, 3 Jul 2025 13:12:30 +0100 Subject: [lldb-dap] Prevent using an implicit `step-in`. (#143644) When there is a function that is inlined at the current program counter. If you get the current `line_entry` using the program counter's address it will point to the location of the inline function that may be in another file. (this is in implicit step-in and should not happen what step over is called). Use the current frame to get the `line_entry` --- .../Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test') diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py index 3b54d59..6299caf 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py @@ -344,7 +344,12 @@ class DAPTestCaseBase(TestBase): granularity="statement", timeout=DEFAULT_TIMEOUT, ): - self.dap_server.request_next(threadId=threadId, granularity=granularity) + response = self.dap_server.request_next( + threadId=threadId, granularity=granularity + ) + self.assertTrue( + response["success"], f"next request failed: response {response}" + ) if waitForStop: return self.dap_server.wait_for_stopped(timeout) return None -- cgit v1.1