summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/DataExtractor.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-07-06 02:13:41 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-07-06 02:13:41 +0000
commit9fc1944ece6e1a668972e80a5e841dc920009899 (patch)
tree1932d140db82c8f6523727341d46af90a11b0690 /lldb/source/Core/DataExtractor.cpp
parent4d806e28302f48f67ff890c38b7bb55b8f76297d (diff)
downloadbcm5719-llvm-9fc1944ece6e1a668972e80a5e841dc920009899.tar.gz
bcm5719-llvm-9fc1944ece6e1a668972e80a5e841dc920009899.zip
new syntax for summary strings:
- ${*expr} now simply means to dereference expr before actually using it - bitfields, array ranges and pointer ranges now work in a (hopefully) more natural and language-compliant way a new class TypeHierarchyNavigator replicates the behavior of the FormatManager in going through type hierarchies when one-lining summary strings, children's summaries can be used as well as values llvm-svn: 134458
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r--lldb/source/Core/DataExtractor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp
index 9d665735534..4cc98f31a65 100644
--- a/lldb/source/Core/DataExtractor.cpp
+++ b/lldb/source/Core/DataExtractor.cpp
@@ -753,7 +753,9 @@ DataExtractor::GetMaxU64Bitfield (uint32_t *offset_ptr, uint32_t size, uint32_t
{
if (bitfield_bit_offset > 0)
uval64 >>= bitfield_bit_offset;
- uint64_t bitfield_mask = ((1 << bitfield_bit_size) - 1);
+ uint64_t bitfield_mask = ((1ul << bitfield_bit_size) - 1);
+ if(!bitfield_mask && bitfield_bit_offset == 0 && bitfield_bit_size == 64)
+ return uval64;
uval64 &= bitfield_mask;
}
return uval64;
OpenPOWER on IntegriCloud