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:
Jason Molenda 2011-11-08 03:52:17 +00:00
parent d8d583f766
commit e519824641
1 changed files with 3 additions and 0 deletions

View File

@ -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