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 {
4646 description = target. signalDescription
4747 }
4848
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+
4957 write ( """
5058 { \
5159 " timestamp " : " \( formatISO8601 ( now) ) " , \
5260 " kind " : " crashReport " , \
5361 " description " : " \( escapeJSON ( description) ) " , \
54- " faultAddress " : " \( hex ( target. faultAddress) ) "
62+ " faultAddress " : " \( hex ( target. faultAddress) ) " , \
63+ " platform " : " \( escapeJSON ( target. images. platform) ) " , \
64+ " architecture " : " \( escapeJSON ( architecture) ) " ,
5565 """ )
5666
5767 var mentionedImages = Set < Int > ( )
You can’t perform that action at this time.
0 commit comments