Skip to content

Commit a70e77e

Browse files
0xZOneIvan Penkov
authored andcommitted
Print additional argument that describes the crash
Bug: none Change-Id: I94b1585d78387dc93efdaba2fa52eb71725a644e Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5974621 Reviewed-by: Ivan Penkov <ivanpe@chromium.org> Reviewed-by: Ivan Penkov <ivanpe@google.com>
1 parent 1cbd9eb commit a70e77e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/processor/stackwalk_common.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,15 @@ void PrintProcessState(const ProcessState& process_state,
11561156
if (process_state.crashed()) {
11571157
printf("Crash reason: %s\n", process_state.crash_reason().c_str());
11581158
printf("Crash address: 0x%" PRIx64 "\n", process_state.crash_address());
1159+
const std::vector<ExceptionParameter>* exception_param_vec =
1160+
process_state.exception_record()->parameters();
1161+
if (exception_param_vec->size() > 0) {
1162+
printf("Crash parameters:\n");
1163+
for (const auto& param : *exception_param_vec) {
1164+
printf(" value: %" PRIu64 "\tdescription: %s\n", param.value(),
1165+
param.description());
1166+
}
1167+
}
11591168
} else {
11601169
printf("No crash\n");
11611170
}

0 commit comments

Comments
 (0)