summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform
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
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')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp14
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h3
2 files changed, 16 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;
+}
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
index 38804edad18..9b3e771193e 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
@@ -85,6 +85,9 @@ public:
lldb_private::Listener &listener,
lldb_private::Error &error);
+ virtual bool
+ ModuleIsExcludedForNonModuleSpecificSearches (lldb_private::Target &target, const lldb::ModuleSP &module_sp);
+
protected:
lldb::PlatformSP m_remote_platform_sp; // Allow multiple ways to connect to a remote darwin OS
OpenPOWER on IntegriCloud