diff options
author | Lei Zhang <thestig@google.com> | 2018-04-02 22:29:08 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2018-04-03 16:35:14 +0000 |
commit | adcc90ddb8c9ebc13a4312116ad92d8628b691c3 (patch) | |
tree | dbbb720156554b0078598fcd612718b01d9eb912 /src/client/linux/minidump_writer/linux_dumper.h | |
parent | Add missing header for free function (diff) | |
download | breakpad-adcc90ddb8c9ebc13a4312116ad92d8628b691c3.tar.xz |
Linux: Write out si_code for SIGBUS exceptions.
Store the information in the exception record's exception_information
field.
Change-Id: Ie215cae2f070fdab63c3d05cc1bc4fb4b7b095fa
Reviewed-on: https://chromium-review.googlesource.com/990799
Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/client/linux/minidump_writer/linux_dumper.h')
-rw-r--r-- | src/client/linux/minidump_writer/linux_dumper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/linux/minidump_writer/linux_dumper.h b/src/client/linux/minidump_writer/linux_dumper.h index 4a4e0b0a..76448fad 100644 --- a/src/client/linux/minidump_writer/linux_dumper.h +++ b/src/client/linux/minidump_writer/linux_dumper.h @@ -170,6 +170,8 @@ class LinuxDumper { unsigned int mapping_id, wasteful_vector<uint8_t>& identifier); + void SetCrashInfoFromSigInfo(const siginfo_t& siginfo); + uintptr_t crash_address() const { return crash_address_; } void set_crash_address(uintptr_t crash_address) { crash_address_ = crash_address; @@ -179,6 +181,9 @@ class LinuxDumper { void set_crash_signal(int crash_signal) { crash_signal_ = crash_signal; } const char* GetCrashSignalString() const; + void set_crash_signal_code(int code) { crash_signal_code_ = code; } + int crash_signal_code() const { return crash_signal_code_; } + pid_t crash_thread() const { return crash_thread_; } void set_crash_thread(pid_t crash_thread) { crash_thread_ = crash_thread; } @@ -228,6 +233,9 @@ class LinuxDumper { // Signal that terminated the crashed process. int crash_signal_; + // The code associated with |crash_signal_|. + int crash_signal_code_; + // ID of the crashed thread. pid_t crash_thread_; |