Improving the support for Fuchsia in Breakpad Processor.

Now decoding the OS name and exception codes for Fuchsia. Still not decoding exception flags (can be added later, if needed).

Change-Id: If66cb000828be18f0c1b35d1b1f52b3ca3e1fd67
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1699049
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Ivan Penkov 2019-07-11 18:34:48 -07:00
parent 02dd8e0da7
commit 4a6d7c70cc
5 changed files with 124 additions and 7 deletions

View file

@ -2016,6 +2016,7 @@ string MinidumpModule::code_identifier() const {
}
case MD_OS_ANDROID:
case MD_OS_FUCHSIA:
case MD_OS_LINUX: {
// If ELF CodeView data is present, return the debug id.
if (cv_record_ && cv_record_signature_ == MD_CVINFOELF_SIGNATURE) {
@ -3502,6 +3503,10 @@ string MinidumpSystemInfo::GetOS() {
os = "nacl";
break;
case MD_OS_FUCHSIA:
os = "fuchsia";
break;
default:
BPLOG(ERROR) << "MinidumpSystemInfo unknown OS for platform " <<
HexString(system_info_.platform_id);