Skip to content

Commit

Permalink
Print additional argument that describes the crash
Browse files Browse the repository at this point in the history
Bug: none
Change-Id: I94b1585d78387dc93efdaba2fa52eb71725a644e
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5974621
Reviewed-by: Ivan Penkov <[email protected]>
Reviewed-by: Ivan Penkov <[email protected]>
  • Loading branch information
0xZOne authored and Ivan Penkov committed Oct 29, 2024
1 parent 1cbd9eb commit a70e77e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/processor/stackwalk_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,15 @@ void PrintProcessState(const ProcessState& process_state,
if (process_state.crashed()) {
printf("Crash reason: %s\n", process_state.crash_reason().c_str());
printf("Crash address: 0x%" PRIx64 "\n", process_state.crash_address());
const std::vector<ExceptionParameter>* exception_param_vec =
process_state.exception_record()->parameters();
if (exception_param_vec->size() > 0) {
printf("Crash parameters:\n");
for (const auto& param : *exception_param_vec) {
printf(" value: %" PRIu64 "\tdescription: %s\n", param.value(),
param.description());
}
}
} else {
printf("No crash\n");
}
Expand Down

0 comments on commit a70e77e

Please sign in to comment.