summaryrefslogtreecommitdiffstats
path: root/lldb/examples/summaries
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-09-18 18:15:27 +0000
committerEnrico Granata <egranata@apple.com>2012-09-18 18:15:27 +0000
commit63d2a23618759811ab83edfdb492b508ec4072fa (patch)
treef52bd5c6195a9b09381072305a0a5688cc5b98f0 /lldb/examples/summaries
parent40cf08dd082ac6139ab4d20bb373b96a51f287cd (diff)
downloadbcm5719-llvm-63d2a23618759811ab83edfdb492b508ec4072fa.tar.gz
bcm5719-llvm-63d2a23618759811ab83edfdb492b508ec4072fa.zip
Fix a potential issue where data formatters can get confused over malformed UUIDs
llvm-svn: 164151
Diffstat (limited to 'lldb/examples/summaries')
-rw-r--r--lldb/examples/summaries/cocoa/objc_runtime.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/examples/summaries/cocoa/objc_runtime.py b/lldb/examples/summaries/cocoa/objc_runtime.py
index 996a6fd27f1..6289e0e26ba 100644
--- a/lldb/examples/summaries/cocoa/objc_runtime.py
+++ b/lldb/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()
OpenPOWER on IntegriCloud