summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBTarget.i
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-01-16 18:53:52 +0000
committerEnrico Granata <egranata@apple.com>2013-01-16 18:53:52 +0000
commitbcd80b47234b48e42ed9f8d557faef554034c47a (patch)
tree738019716f664aa8d95cd0bec40e41a152a5f400 /lldb/scripts/Python/interface/SBTarget.i
parent77f49a4902fdf3b73d54796c1579988477f6927e (diff)
downloadbcm5719-llvm-bcd80b47234b48e42ed9f8d557faef554034c47a.tar.gz
bcm5719-llvm-bcd80b47234b48e42ed9f8d557faef554034c47a.zip
<rdar://problem/13021266>
Adding FindFirstGlobalVariable to SBModule and SBTarget These calls work like FindGlobalVariables but they only return the first match found and so they can return an SBValue instead of an SBValueList for added convenience of use llvm-svn: 172636
Diffstat (limited to 'lldb/scripts/Python/interface/SBTarget.i')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index 88fcf036ee1..8d681e80653 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -586,6 +586,21 @@ public:
FindGlobalVariables (const char *name,
uint32_t max_matches);
+ %feature("docstring", "
+ //------------------------------------------------------------------
+ /// Find the first global (or static) variable by name.
+ ///
+ /// @param[in] name
+ /// The name of the global or static variable we are looking
+ /// for.
+ ///
+ /// @return
+ /// An SBValue that gets filled in with the found variable (if any).
+ //------------------------------------------------------------------
+ ") FindFirstGlobalVariable;
+ lldb::SBValue
+ FindFirstGlobalVariable (const char* name);
+
void
Clear ();
OpenPOWER on IntegriCloud