diff options
-rw-r--r-- | lldb/source/Core/DataExtractor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp index a232c0a66fd..9901f67881b 100644 --- a/lldb/source/Core/DataExtractor.cpp +++ b/lldb/source/Core/DataExtractor.cpp @@ -1440,6 +1440,9 @@ DataExtractor::Dump (Stream *s, case eFormatChar: case eFormatCharPrintable: case eFormatCharArray: + if (item_bit_size < 8) + s->Printf ("%llu", GetMaxU64Bitfield(&offset, item_byte_size, item_bit_size, item_bit_offset)); + else { // If we are only printing one character surround it with single // quotes |