diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-06-29 22:26:59 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-06-29 22:26:59 +0000 |
| commit | d1ef780bb3162c53a51e0335325993298ea1e160 (patch) | |
| tree | 2685ce456c35cc1b218b80c904aec769d70fe7c1 /lldb/test/python_api | |
| parent | 34c8f51d65a477427044253856206caa721fbf02 (diff) | |
| download | bcm5719-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.py | 1 | ||||
| -rw-r--r-- | lldb/test/python_api/default-constructor/sb_target.py | 1 |
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) |

