Chromium OS has a modified copy of google-breakpad
(http://git.chromium.org/gitweb/?p=chromiumos/platform/google-breakpad.git),
which is originally developed by kmixter@, to support converting core dump into
minidump format.
The major changes are:
1. LinuxDumper is modified to gather process/thread information of a crashed
process using a core dump file instead of ptrace. Also, instead of reading
information from /proc/<crash pid>, it reads from a directory that contains a
copy of the /proc/<pid>
2. MinidumpWriter provides WriteMinidumpFromCore() to invoke LinuxDumper with a
core dump file and a directory of a copy of /proc/<crash pid>.
3. Two tools, core2md and core_dumper, are added to src/tools/linux for
handling core dump to minidump conversion.
We would like to upstream these changes and get rid of our local branch. One
approach is to refactor LinuxDumper such that LinuxDumper becomes the base
class/interface of common code, and is inherited by two derived classes,
LinuxPtraceDumper and LinuxCoreDumper, for implementing the original ptrace
solution and our core dump variant, respectively.
Please assign this issue to me as I'm working on refactoring the code.
Original issue reported on code.google.com by benc...@chromium.org on 6 Dec 2011 at 1:41
Original issue reported on code.google.com by
benc...@chromium.org
on 6 Dec 2011 at 1:41