Alastair Houghton
583a2f8df4
[Backtracing] Update JSON output slightly after review.
...
Always put `registers` in the thread record, and always use the `threads`
top level key, even if we ask for only the crashed thread. Also add an
`omittedThreads` key.
rdar://121430255
2025-02-26 14:12:21 +00:00
Alastair Houghton
3964879a18
[Test][Backtracing] Added tests for JSON backtrace output.
...
Check that we generate valid JSON crash reports.
rdar://121430255
2025-02-26 14:12:20 +00:00
Alastair Houghton
b4d4a27b85
[Backtracing] Fix JSON output when not giving backtraces for all threads.
...
I'd omitted the key from the dictionary by mistake.
rdar://121430255
2025-02-26 14:12:20 +00:00
Alastair Houghton
bc2722e2cc
[Backtracing] Add platform and architecture to JSON output.
...
The JSON output should include platform and architecture data.
rdar://121430255
2025-02-26 14:12:20 +00:00
Alastair Houghton
75204522df
[Backtracing] Fix memory capture output.
...
A couple of commas were in the wrong place.
2025-02-26 14:12:20 +00:00
Alastair Houghton
b5461aeb22
[Backtracing] Added JSON crash log option.
...
Also made it so the `sanitize` option causes the crash logs to not
include memory dumps.
Fixes #71057
rdar://121430255
2025-02-26 14:12:17 +00:00