summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-11-28 00:51:27 +0000
committerGreg Clayton <gclayton@apple.com>2011-11-28 00:51:27 +0000
commit1abfe04d790f56aa85ed23214f47a85acca1e13d (patch)
treec9c34c5fdf14086900db686a0686fd5acc6b351d /lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp
parent3e79ef1d45dceca20390329fec777fea73e294ec (diff)
downloadbcm5719-llvm-1abfe04d790f56aa85ed23214f47a85acca1e13d.tar.gz
bcm5719-llvm-1abfe04d790f56aa85ed23214f47a85acca1e13d.zip
Fixed an issue in the DWARFLocationList::Dump() function where default
arguments were quietly masked as the code changed (modified version of a path from Dawn). llvm-svn: 145216
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp
index 30a243ea652..ef53eb55121 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFLocationList.cpp
@@ -34,7 +34,11 @@ DWARFLocationList::Dump(Stream &s, const DWARFCompileUnit* cu, const DataExtract
s.PutCString("\n ");
s.Indent();
- s.AddressRange(start_addr + base_addr, end_addr + base_addr, NULL, ": ");
+ s.AddressRange (start_addr + base_addr,
+ end_addr + base_addr,
+ cu->GetAddressByteSize(),
+ NULL,
+ ": ");
uint32_t loc_length = debug_loc_data.GetU16(&offset);
DataExtractor locationData(debug_loc_data, offset, loc_length);
OpenPOWER on IntegriCloud