[Lldb-commits] [lldb] Fix error in unrecognized register name handling for "SBFrame.register" (PR #88047)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 8 14:34:42 PDT 2024
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 5b959310b0fae723bd119ed8815bf1cb1a8c67d4...d1336d9f8877c45dfd9a427eaa900f5208153de1 lldb/test/API/python_api/frame/TestFrames.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestFrames.py 2024-04-08 21:20:17.000000 +0000
+++ TestFrames.py 2024-04-08 21:34:19.896474 +0000
@@ -82,12 +82,14 @@
iterator_pc_value = int(reg.GetValue(), 0)
break
pc_value_int = int(pc_value.GetValue(), 0)
self.assertTrue(found_pc, "Found the PC value in the register list")
- self.assertEqual(iterator_pc_value, pc_value_int, "The methods of finding pc match")
-
+ self.assertEqual(
+ iterator_pc_value, pc_value_int, "The methods of finding pc match"
+ )
+
# Make sure on arm targets we dont mismatch PC value on the basis of thumb bit.
# Frame PC will not have thumb bit set in case of a thumb
# instruction as PC.
if self.getArchitecture() in ["arm", "armv7", "armv7k"]:
pc_value_int &= ~1
``````````
</details>
https://github.com/llvm/llvm-project/pull/88047
More information about the lldb-commits
mailing list