summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ModuleList.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-08-13 01:42:25 +0000
committerGreg Clayton <gclayton@apple.com>2013-08-13 01:42:25 +0000
commitfd814c5a646a46217a1b99eb07a58302fa5e4aea (patch)
tree961739d436887f173a442fbdb10ab502bcb85f1b /lldb/source/Core/ModuleList.cpp
parente8fdc06e0dab2e7b98339425dbe369e27e2092a3 (diff)
downloadbcm5719-llvm-fd814c5a646a46217a1b99eb07a58302fa5e4aea.tar.gz
bcm5719-llvm-fd814c5a646a46217a1b99eb07a58302fa5e4aea.zip
<rdar://problem/14717184>
LLDB needs in memory module load level settings to control how much information is read from memory when loading in memory modules. This change adds a new setting: (lldb) settings set target.memory-module-load-level [minimal|partial|complete] minimal will load only sections (no symbols, or function bounds via function starts or EH frame) partial will load sections + bounds complete will load sections + bounds + symbols llvm-svn: 188246
Diffstat (limited to 'lldb/source/Core/ModuleList.cpp')
-rw-r--r--lldb/source/Core/ModuleList.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index 6c94a501da9..ebc6702d3a9 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -151,7 +151,10 @@ ModuleList::AppendIfNeeded (const ModuleList& module_list)
{
bool any_in = false;
for (auto pos : module_list.m_modules)
- any_in = AppendIfNeeded(pos) | any_in;
+ {
+ if (AppendIfNeeded(pos))
+ any_in = true;
+ }
return any_in;
}
OpenPOWER on IntegriCloud