summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-29 22:26:59 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-29 22:26:59 +0000
commitd1ef780bb3162c53a51e0335325993298ea1e160 (patch)
tree2685ce456c35cc1b218b80c904aec769d70fe7c1 /lldb/test/python_api
parent34c8f51d65a477427044253856206caa721fbf02 (diff)
downloadbcm5719-llvm-d1ef780bb3162c53a51e0335325993298ea1e160.tar.gz
bcm5719-llvm-d1ef780bb3162c53a51e0335325993298ea1e160.zip
Add fuzz calls for SBModule/SBTarget.FindGlobalVariables(...).
llvm-svn: 134107
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/default-constructor/sb_module.py1
-rw-r--r--lldb/test/python_api/default-constructor/sb_target.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_module.py b/lldb/test/python_api/default-constructor/sb_module.py
index 6b2820e3cf3..87746df027b 100644
--- a/lldb/test/python_api/default-constructor/sb_module.py
+++ b/lldb/test/python_api/default-constructor/sb_module.py
@@ -17,3 +17,4 @@ def fuzz_obj(obj):
obj.GetNumSymbols()
obj.GetSymbolAtIndex(sys.maxint)
obj.FindFunctions("my_func", 0xffffffff, True, lldb.SBSymbolContextList())
+ obj.FindGlobalVariables(lldb.SBTarget(), "my_global_var", 1)
diff --git a/lldb/test/python_api/default-constructor/sb_target.py b/lldb/test/python_api/default-constructor/sb_target.py
index 0f94d2fc998..df55149bbad 100644
--- a/lldb/test/python_api/default-constructor/sb_target.py
+++ b/lldb/test/python_api/default-constructor/sb_target.py
@@ -22,6 +22,7 @@ def fuzz_obj(obj):
obj.FindModule(filespec)
contextlist = lldb.SBSymbolContextList()
obj.FindFunctions("the_func", 0xff, True, contextlist)
+ obj.FindGlobalVariables("my_global_var", 1)
address = lldb.SBAddress()
obj.ResolveLoadAddress(0xffff, address)
obj.ResolveSymbolContextForAddress(address, 0)
OpenPOWER on IntegriCloud