summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-10-28 23:14:11 +0000
committerJim Ingham <jingham@apple.com>2011-10-28 23:14:11 +0000
commitc6674fd597ad02f115a96405e1a1b0f65c7ba19c (patch)
tree2ebfd981e4f35df1626141cdd84eda2b1219f2dd /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
parentdba74af1b84b80ac1253c9888dce8fcfded7df23 (diff)
downloadbcm5719-llvm-c6674fd597ad02f115a96405e1a1b0f65c7ba19c.tar.gz
bcm5719-llvm-c6674fd597ad02f115a96405e1a1b0f65c7ba19c.zip
Added the ability for the target to specify Modules that will not be searched
when setting breakpoints, but only if no module is specified. The Darwin platform uses this to not set breakpoints in dyld. llvm-svn: 143249
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index 93be92353ef..24344306053 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -481,4 +481,16 @@ PlatformDarwin::GetGroupName (uint32_t gid)
return NULL;
}
-
+bool
+PlatformDarwin::ModuleIsExcludedForNonModuleSpecificSearches (lldb_private::Target &target, const lldb::ModuleSP &module_sp)
+{
+ ObjectFile *obj_file = module_sp->GetObjectFile();
+ if (!obj_file)
+ return false;
+
+ ObjectFile::Type obj_type = obj_file->GetType();
+ if (obj_type == ObjectFile::eTypeDynamicLinker)
+ return true;
+ else
+ return false;
+}
OpenPOWER on IntegriCloud