diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-12-14 01:43:31 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-12-14 01:43:31 +0000 |
| commit | c6770763e612f214422952998b6a8e3c3b3d97d1 (patch) | |
| tree | 3f92a5758a8ca6f12f5c8dbc578e2e2ea6146927 /lldb/test/python_api/default-constructor | |
| parent | 798b0c8340bf70f18ce07a0926f78eb0eb567fff (diff) | |
| download | bcm5719-llvm-c6770763e612f214422952998b6a8e3c3b3d97d1.tar.gz bcm5719-llvm-c6770763e612f214422952998b6a8e3c3b3d97d1.zip | |
http://llvm.org/bugs/show_bug.cgi?id=11560 lldb::SBTarget::FindFirstType crashes when passed None
Add null checks to several functions. Plus add test scenario for passing None to SBTarget.FindFirstType(None) and friends.
llvm-svn: 146540
Diffstat (limited to 'lldb/test/python_api/default-constructor')
| -rw-r--r-- | lldb/test/python_api/default-constructor/sb_target.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_target.py b/lldb/test/python_api/default-constructor/sb_target.py index 3b0a70cb8b8..bff6f8f7edf 100644 --- a/lldb/test/python_api/default-constructor/sb_target.py +++ b/lldb/test/python_api/default-constructor/sb_target.py @@ -24,6 +24,7 @@ def fuzz_obj(obj): obj.FindFunctions("the_func", 0xff, True, contextlist) obj.FindFirstType("dont_care") obj.FindTypes("dont_care") + obj.FindFirstType(None) obj.GetSourceManager() obj.FindGlobalVariables("my_global_var", 1) address = obj.ResolveLoadAddress(0xffff) |

