Bitfields in uint8_t's will have format eFormatChar and DataExtractor::Dump
doesn't handle bitfields in eFormatChar's correctly, only eFormatUnsigned. Fix DataExtractor::Dump to dump the bitfield eFormatChars correctly. llvm-svn: 144069
This commit is contained in:
parent
d8d583f766
commit
e519824641
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue