[Lldb-commits] [lldb] r144069 - /lldb/trunk/source/Core/DataExtractor.cpp
Jason Molenda
jmolenda at apple.com
Mon Nov 7 19:52:17 PST 2011
Author: jmolenda
Date: Mon Nov 7 21:52:17 2011
New Revision: 144069
URL: http://llvm.org/viewvc/llvm-project?rev=144069&view=rev
Log:
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.
Modified:
lldb/trunk/source/Core/DataExtractor.cpp
Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=144069&r1=144068&r2=144069&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Mon Nov 7 21:52:17 2011
@@ -1440,6 +1440,9 @@
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
More information about the lldb-commits
mailing list