File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
stdlib/public/libexec/swift-backtrace Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,22 @@ extension SwiftBacktrace {
46
46
description = target. signalDescription
47
47
}
48
48
49
+ let architecture : String
50
+ switch crashingThread. backtrace {
51
+ case let . raw( backtrace) :
52
+ architecture = backtrace. architecture
53
+ case let . symbolicated( backtrace) :
54
+ architecture = backtrace. architecture
55
+ }
56
+
49
57
write ( """
50
58
{ \
51
59
" timestamp " : " \( formatISO8601 ( now) ) " , \
52
60
" kind " : " crashReport " , \
53
61
" description " : " \( escapeJSON ( description) ) " , \
54
- " faultAddress " : " \( hex ( target. faultAddress) ) "
62
+ " faultAddress " : " \( hex ( target. faultAddress) ) " , \
63
+ " platform " : " \( escapeJSON ( target. images. platform) ) " , \
64
+ " architecture " : " \( escapeJSON ( architecture) ) " ,
55
65
""" )
56
66
57
67
var mentionedImages = Set < Int > ( )
You can’t perform that action at this time.
0 commit comments