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 <jperaza@chromium.org>
This commit is contained in:
Mike Frysinger 2021-03-11 20:56:26 -05:00
parent d6a6f52606
commit 344b0ebf57

View file

@ -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",