diff options
author | Dominik Laskowski <domlaskowski@chromium.org> | 2016-03-03 16:14:00 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@chromium.org> | 2016-03-07 21:35:43 -0500 |
commit | 4d690507171bff0f29dcf382b6909888d2f3bd17 (patch) | |
tree | fe354e7b4b6ca1885de68547cea5194e7f6da632 /src/client/linux/minidump_writer/linux_core_dumper.h | |
parent | Handle multiple microdumps in system log. (diff) | |
download | breakpad-4d690507171bff0f29dcf382b6909888d2f3bd17.tar.xz |
Add an optional root prefix to Linux dumpers
The Linux dumpers use absolute paths for shared libraries referenced by
dumps, so they fail to locate them if the crash originated in a chroot.
This CL enables callers to specify a root prefix, which is prepended to
mapping paths before opening them.
BUG=chromium:591792
TEST=make check
Review URL: https://codereview.chromium.org/1761023002/
Diffstat (limited to 'src/client/linux/minidump_writer/linux_core_dumper.h')
-rw-r--r-- | src/client/linux/minidump_writer/linux_core_dumper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/linux/minidump_writer/linux_core_dumper.h b/src/client/linux/minidump_writer/linux_core_dumper.h index 8537896e..8a7c924b 100644 --- a/src/client/linux/minidump_writer/linux_core_dumper.h +++ b/src/client/linux/minidump_writer/linux_core_dumper.h @@ -47,7 +47,9 @@ class LinuxCoreDumper : public LinuxDumper { // its proc files at |procfs_path|. If |procfs_path| is a copy of // /proc/<pid>, it should contain the following files: // auxv, cmdline, environ, exe, maps, status - LinuxCoreDumper(pid_t pid, const char* core_path, const char* procfs_path); + // See LinuxDumper for the purpose of |root_prefix|. + LinuxCoreDumper(pid_t pid, const char* core_path, const char* procfs_path, + const char* root_prefix = ""); // Implements LinuxDumper::BuildProcPath(). // Builds a proc path for a certain pid for a node (/proc/<pid>/<node>). |