From 344b0ebf57db3ec4926ff6edb6db875d58ef30cc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 11 Mar 2021 20:56:26 -0500 Subject: [PATCH] minidump_dump: decode cpu & os fields We already have helper functions for this, so use them. Change-Id: I6f77c9e138c461837cfb93adafce639ed8b836bb Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2753492 Reviewed-by: Joshua Peraza --- src/processor/minidump.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc index 1f479558..aab0e9fb 100644 --- a/src/processor/minidump.cc +++ b/src/processor/minidump.cc @@ -3603,8 +3603,8 @@ void MinidumpSystemInfo::Print() { } printf("MDRawSystemInfo\n"); - printf(" processor_architecture = 0x%x\n", - system_info_.processor_architecture); + printf(" processor_architecture = 0x%x (%s)\n", + system_info_.processor_architecture, GetCPU().c_str()); printf(" processor_level = %d\n", system_info_.processor_level); printf(" processor_revision = 0x%x\n", @@ -3619,8 +3619,8 @@ void MinidumpSystemInfo::Print() { system_info_.minor_version); printf(" build_number = %d\n", system_info_.build_number); - printf(" platform_id = 0x%x\n", - system_info_.platform_id); + printf(" platform_id = 0x%x (%s)\n", + system_info_.platform_id, GetOS().c_str()); printf(" csd_version_rva = 0x%x\n", system_info_.csd_version_rva); printf(" suite_mask = 0x%x\n",