projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f34aca
)
[crashlog] Print the actual exception in the CommandReturnObject
author
Jonas Devlieghere
<jonas@devlieghere.com>
Tue, 3 Nov 2020 19:49:59 +0000
(11:49 -0800)
committer
Jonas Devlieghere
<jonas@devlieghere.com>
Tue, 3 Nov 2020 19:51:40 +0000
(11:51 -0800)
Before:
error: python exception <class 'AttributeError'>
After:
error: python exception: 'DarwinImage' object has no attribute 'debugger'
lldb/examples/python/crashlog.py
patch
|
blob
|
history
diff --git
a/lldb/examples/python/crashlog.py
b/lldb/examples/python/crashlog.py
index
7653871
..
d3943fb
100755
(executable)
--- 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):