[Lldb-commits] [lldb] [lldb-dap] Return raw stop info from exceptionInfo (PR #231760)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 13 22:57:31 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD lldb/packages/Python/lldbsuite/test/tools/lldb_dap/types.py lldb/test/API/tools/lldb-dap/exception/asan/TestDAP_asan.py lldb/test/API/tools/lldb-dap/exception/ubsan/TestDAP_ubsan.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test/API/tools/lldb-dap/exception/asan/TestDAP_asan.py 2026-10-14 05:54:08.000000 +0000
+++ test/API/tools/lldb-dap/exception/asan/TestDAP_asan.py 2026-10-14 05:56:55.898014 +0000
@@ -27,10 +27,8 @@
self.assertEqual(exception_info.breakMode, "always")
description = self.expect_not_none(exception_info.description)
self.assertRegex(description, r"fatal_error: heap-use-after-free")
self.assertEqual(exception_info.exceptionId, "runtime-instrumentation")
- stop_info = self.expect_not_none(
- exception_info.lldb_stop_reason_extended_info
- )
+ stop_info = self.expect_not_none(exception_info.lldb_stop_reason_extended_info)
self.assertEqual(stop_info["instrumentation_class"], "AddressSanitizer")
self.assertEqual(stop_info["description"], "heap-use-after-free")
--- test/API/tools/lldb-dap/exception/ubsan/TestDAP_ubsan.py 2026-10-14 05:54:08.000000 +0000
+++ test/API/tools/lldb-dap/exception/ubsan/TestDAP_ubsan.py 2026-10-14 05:56:55.916808 +0000
@@ -28,13 +28,11 @@
self.assertEqual(exception_info.breakMode, "always")
description = self.expect_not_none(exception_info.description)
self.assertRegex(description, r"Out of bounds index")
self.assertEqual(exception_info.exceptionId, "runtime-instrumentation")
- stop_info = self.expect_not_none(
- exception_info.lldb_stop_reason_extended_info
- )
+ stop_info = self.expect_not_none(exception_info.lldb_stop_reason_extended_info)
self.assertEqual(
stop_info["instrumentation_class"], "UndefinedBehaviorSanitizer"
)
# FIXME: Check on non macOS platform the stop information location heuristic
``````````
</details>
https://github.com/llvm/llvm-project/pull/231760
More information about the lldb-commits
mailing list