[Lldb-commits] [lldb] Add AddressRange to SB API (PR #92014)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 17 14:08:25 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 c675a58edec6d1a876a0d0e7d261f74764855b38...939d42eba9f88d90ac72782415640bbab360645c lldb/test/API/python_api/address_range/TestAddressRange.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestAddressRange.py 2024-05-17 14:39:10.000000 +0000
+++ TestAddressRange.py 2024-05-17 21:07:58.763834 +0000
@@ -63,11 +63,11 @@
loc = self.bp1.GetLocationAtIndex(0)
loc_addr = loc.GetAddress()
func = loc_addr.GetFunction()
ranges = func.GetRanges()
self.assertEqual(ranges.GetSize(), 1)
-
+
range = ranges.GetAddressRangeAtIndex(0)
self.assertEqual(
range.GetByteSize(),
func.GetEndAddress().GetOffset() - func.GetStartAddress().GetOffset(),
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/92014
More information about the lldb-commits
mailing list