summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-14 14:41:30 +0000
committerPavel Labath <labath@google.com>2018-06-14 14:41:30 +0000
commit234c68168648d0bbcb514d337dd268d4dc3ed0c3 (patch)
treed56237c16871579a509299829395e461edc4c4a9 /lldb/source/Plugins
parent1ee741bdb65c1005eca047054cedab3f24deb8db (diff)
downloadbcm5719-llvm-234c68168648d0bbcb514d337dd268d4dc3ed0c3.tar.gz
bcm5719-llvm-234c68168648d0bbcb514d337dd268d4dc3ed0c3.zip
DebugNamesDWARFIndex: fix handling of compressed sections
This fixes a silly bug where we were accidentally freeing the memory used to store the decompressed .debug_names data. I had actually considered this scenario when writing the class and put appropriate precautions in place -- I just failed to wire it all up correctly. This was only an issue for compressed sections because in case of uncompressed ones we would access the data straight out of the mmapped object file. llvm-svn: 334717
Diffstat (limited to 'lldb/source/Plugins')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h b/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
index 4f0b1cee420..ad964e51cfc 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
@@ -53,6 +53,7 @@ private:
DWARFDataExtractor debug_str_data,
DWARFDebugInfo &debug_info)
: DWARFIndex(module), m_debug_info(debug_info),
+ m_debug_names_data(debug_names_data), m_debug_str_data(debug_str_data),
m_debug_names_up(std::move(debug_names_up)),
m_fallback(module, &debug_info, GetUnits(*m_debug_names_up)) {}
OpenPOWER on IntegriCloud