[Lldb-commits] [lldb] [lldb] Make AddressRange dump easier on the eye (PR #141062)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu May 22 10:00:17 PDT 2025


================
@@ -11,7 +11,7 @@ image show-unwind -n func0
 # CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.
 # CHECK-NEXT: This UnwindPlan is valid at all instruction locations: no.
 # CHECK-NEXT: This UnwindPlan is for a trap handler function: no.
-# CHECK-NEXT: Address range of this UnwindPlan: [stack-cfi-parsing.out..module_image + 0-0x0000000000000002)
+# CHECK-NEXT: Address range of this UnwindPlan: [stack-cfi-parsing.out..module_image + 0-2)
----------------
labath wrote:

The start of the interval is `.module_image + 0` and the end is `.module_image + 2` (`+2` is not included in the range). I agree it's not very clear, but I haven't come up with something better. I considered `[stack-cfi-parsing.out..module_image + 0, + 2)` but I'm not sure if that helps. `[stack-cfi-parsing.out..module_image + 0, stack-cfi-parsing.out..module_image + 2)` would be clear, but then it gets verbose again...

https://github.com/llvm/llvm-project/pull/141062


More information about the lldb-commits mailing list