From: Jonas Devlieghere Date: Tue, 3 Nov 2020 19:49:59 +0000 (-0800) Subject: [crashlog] Print the actual exception in the CommandReturnObject X-Git-Tag: llvmorg-13-init~7195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0fd4349a78aff99b7e2214bf1ffe9e352201de3;p=platform%2Fupstream%2Fllvm.git [crashlog] Print the actual exception in the CommandReturnObject Before: error: python exception After: error: python exception: 'DarwinImage' object has no attribute 'debugger' --- diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 7653871..d3943fb 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -849,8 +849,8 @@ def save_crashlog(debugger, command, exe_ctx, result, dict): def Symbolicate(debugger, command, result, dict): try: SymbolicateCrashLogs(shlex.split(command)) - except: - result.PutCString("error: python exception %s" % sys.exc_info()[0]) + except Exception as e: + result.PutCString("error: python exception: %s" % e) def SymbolicateCrashLog(crash_log, options):