aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/microdump_writer
diff options
context:
space:
mode:
authorDominik Laskowski <domlaskowski@chromium.org>2016-03-03 16:14:00 -0500
committerMike Frysinger <vapier@chromium.org>2016-03-07 21:35:43 -0500
commit4d690507171bff0f29dcf382b6909888d2f3bd17 (patch)
treefe354e7b4b6ca1885de68547cea5194e7f6da632 /src/client/linux/microdump_writer
parentHandle multiple microdumps in system log. (diff)
downloadbreakpad-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/microdump_writer')
-rw-r--r--src/client/linux/microdump_writer/microdump_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc
index fc29b714..91697ed8 100644
--- a/src/client/linux/microdump_writer/microdump_writer.cc
+++ b/src/client/linux/microdump_writer/microdump_writer.cc
@@ -350,7 +350,7 @@ class MicrodumpWriter {
char file_name[NAME_MAX];
char file_path[NAME_MAX];
- LinuxDumper::GetMappingEffectiveNameAndPath(
+ dumper_->GetMappingEffectiveNameAndPath(
mapping, file_path, sizeof(file_path), file_name, sizeof(file_name));
LogAppend("M ");