summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBModule.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-06-21 01:34:41 +0000
committerGreg Clayton <gclayton@apple.com>2011-06-21 01:34:41 +0000
commitfe356d356ad411306d360da58c9b5fef1175fc95 (patch)
tree0add0059dead65aa1a7acc0418b21c5319085bd3 /lldb/source/API/SBModule.cpp
parent27029885f00108f42105b0d2e8a0cd690aac99f6 (diff)
Added the ability to find functions from either a SBModule (find functions
only in a specific module), or in a SBTarget (all modules for a target). llvm-svn: 133498
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r--lldb/source/API/SBModule.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index 427850ec46c2..f497fd1f012f 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -10,8 +10,8 @@
#include "lldb/API/SBModule.h"
#include "lldb/API/SBAddress.h"
#include "lldb/API/SBFileSpec.h"
-#include "lldb/API/SBFileSpec.h"
#include "lldb/API/SBStream.h"
+#include "lldb/API/SBSymbolContextList.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/Log.h"
#include "lldb/Core/StreamString.h"
@@ -285,3 +285,24 @@ SBModule::GetSymbolAtIndex (size_t idx)
}
return sb_symbol;
}
+
+uint32_t
+SBModule::FindFunctions (const char *name,
+ uint32_t name_type_mask,
+ bool append,
+ lldb::SBSymbolContextList& sc_list)
+{
+ if (!append)
+ sc_list.Clear();
+ if (m_opaque_sp)
+ {
+ const bool symbols_ok = true;
+ return m_opaque_sp->FindFunctions (ConstString(name),
+ name_type_mask,
+ symbols_ok,
+ append,
+ *sc_list);
+ }
+ return 0;
+}
+