Add option to dump crash thread only

Add minidump_stackwalk option to dump the crash thread only

Bug: 1129202

Change-Id: I1370b4dc972f76ba1d57fca083da7d486774e65a
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2762072
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Michael Bai 2021-03-30 14:49:20 -07:00 committed by Joshua Peraza
parent dff7d5afd5
commit 3bea2815bf
4 changed files with 29 additions and 15 deletions

View file

@ -110,7 +110,10 @@ int PrintMicrodumpProcess(const Options& options) {
if (options.machine_readable) {
PrintProcessStateMachineReadable(process_state);
} else {
PrintProcessState(process_state, options.output_stack_contents, &resolver);
// Microdump has only one thread, |output_requesting_thread_only|'s value
// has no effect.
PrintProcessState(process_state, options.output_stack_contents,
/*output_requesting_thread_only=*/false, &resolver);
}
return 0;
}