diff options
| -rw-r--r-- | lldb/examples/summaries/cocoa/objc_runtime.py | 5 |
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() |

