diff options
author | Andrew Ermakovich <andrew@resilio.com> | 2017-04-21 18:41:24 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@chromium.org> | 2017-04-21 17:28:03 +0000 |
commit | 67649c61853108eb0c29703f6ff0db42e9d69f10 (patch) | |
tree | e447f2c18db26d32314b02e7c94a1644f054c030 /src/client/linux/minidump_writer/linux_ptrace_dumper.h | |
parent | Make minidump name generation on Linux as random as possible (diff) | |
download | breakpad-67649c61853108eb0c29703f6ff0db42e9d69f10.tar.xz |
Fixing breakpad on old linux kernel
Try to read the trace's registers by PTRACE_GETREGS if kernel doesn't support PTRACE_GETREGSET.
Bug:
Change-Id: I881f3a868789747ca217f22a93370c6914881f9a
Reviewed-on: https://chromium-review.googlesource.com/484479
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'src/client/linux/minidump_writer/linux_ptrace_dumper.h')
-rw-r--r-- | src/client/linux/minidump_writer/linux_ptrace_dumper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/linux/minidump_writer/linux_ptrace_dumper.h b/src/client/linux/minidump_writer/linux_ptrace_dumper.h index 2ce834b0..cee58178 100644 --- a/src/client/linux/minidump_writer/linux_ptrace_dumper.h +++ b/src/client/linux/minidump_writer/linux_ptrace_dumper.h @@ -85,6 +85,15 @@ class LinuxPtraceDumper : public LinuxDumper { private: // Set to true if all threads of the crashed process are suspended. bool threads_suspended_; + + // Read the tracee's registers on kernel with PTRACE_GETREGSET support. + // Returns false if PTRACE_GETREGSET is not defined. + // Returns true on success. + bool ReadRegisterSet(ThreadInfo* info, pid_t tid); + + // Read the tracee's registers on kernel with PTRACE_GETREGS support. + // Returns true on success. + bool ReadRegisters(ThreadInfo* info, pid_t tid); }; } // namespace google_breakpad |