[Lldb-commits] [lldb] [lldb] Add stop_reason Python property to SBThread (PR #151568)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 31 10:59:26 PDT 2025
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 HEAD~1...HEAD lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py lldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/TestOSPluginStepping.py lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py lldb/test/API/functionalities/step_scripted/TestStepScripted.py lldb/test/API/functionalities/tsan/multiple/TestTsanMultiple.py lldb/test/API/macosx/abort_with_payload/TestAbortWithPayload.py lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py lldb/test/API/riscv/break-undecoded/TestBreakpointIllegal.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- functionalities/scripted_process/stack_core_scripted_process.py 2025-07-31 17:56:17.000000 +0000
+++ functionalities/scripted_process/stack_core_scripted_process.py 2025-07-31 17:59:00.706034 +0000
@@ -202,13 +202,11 @@
stop_reason["type"] = lldb.eStopReasonNone
if self.is_stopped:
if "arm64" in self.scripted_process.arch:
stop_reason["type"] = lldb.eStopReasonException
- stop_reason["data"][
- "desc"
- ] = self.corefile_thread.stop_description
+ stop_reason["data"]["desc"] = self.corefile_thread.stop_description
elif self.scripted_process.arch == "x86_64":
stop_reason["type"] = lldb.eStopReasonSignal
stop_reason["data"]["signal"] = signal.SIGTRAP
else:
stop_reason["type"] = self.corefile_thread.GetStopReason()
``````````
</details>
https://github.com/llvm/llvm-project/pull/151568
More information about the lldb-commits
mailing list