[Lldb-commits] [lldb] [LLDB] Add a setting for print hex values without leading zeroes (PR #66548)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 15 13:47:50 PDT 2023


================
@@ -620,10 +620,17 @@ lldb::offset_t lldb_private::DumpDataExtractor(
       case 2:
       case 4:
       case 8:
-        s->Printf(wantsuppercase ? "0x%*.*" PRIX64 : "0x%*.*" PRIx64,
-                  (int)(2 * item_byte_size), (int)(2 * item_byte_size),
-                  DE.GetMaxU64Bitfield(&offset, item_byte_size, item_bit_size,
-                                       item_bit_offset));
+        if (exe_scope->CalculateTarget()
----------------
clayborg wrote:

Actually do you need to test if "exe_scope" is not NULL here?

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


More information about the lldb-commits mailing list