aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorEbuka Ezike <yerimyah1@gmail.com>2025-07-03 13:12:30 +0100
committerGitHub <noreply@github.com>2025-07-03 13:12:30 +0100
commitc5f47c6fd2cd9a5d13d20bee2ac7211b28d233e7 (patch)
treea07f48c54d6519db5bb82fecfcd9f698ad97015e /lldb/packages/Python/lldbsuite
parent8763ac3252f2f291db15c7adea9f72135a14c193 (diff)
downloadllvm-c5f47c6fd2cd9a5d13d20bee2ac7211b28d233e7.zip
llvm-c5f47c6fd2cd9a5d13d20bee2ac7211b28d233e7.tar.gz
llvm-c5f47c6fd2cd9a5d13d20bee2ac7211b28d233e7.tar.bz2
[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`
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py7
1 files changed, 6 insertions, 1 deletions
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