diff options
author | Enrico Granata <egranata@apple.com> | 2012-09-18 18:15:27 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-09-18 18:15:27 +0000 |
commit | 3b031d93d53b509c43d592cbcdc17a862f3508b8 (patch) | |
tree | fd68e00c5b05d51037d03a716296e1c6ebd54d2e /examples | |
parent | defd0dc9331fbc7c8d0df60acf7fe63a64e393f4 (diff) | |
download | lldb-3b031d93d53b509c43d592cbcdc17a862f3508b8.tar.gz |
Fix a potential issue where data formatters can get confused over malformed UUIDs
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@164151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/summaries/cocoa/objc_runtime.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/summaries/cocoa/objc_runtime.py b/examples/summaries/cocoa/objc_runtime.py index 996a6fd27..6289e0e26 100644 --- a/examples/summaries/cocoa/objc_runtime.py +++ b/examples/summaries/cocoa/objc_runtime.py @@ -75,7 +75,10 @@ class Utilities: logger = lldb.formatters.Logger.Logger() # assume the only thing that has a Foundation.framework is a Mac # assume anything < Lion does not even exist - mod = target.module['Foundation'] + try: + mod = target.module['Foundation'] + except: + mod = None if mod is None or mod.IsValid() == 0: return None ver = mod.GetVersion() |