|
Implement core dump to minidump conversion.
This patch is part of a bigger patch that helps merging the breakpad code
with the modified version in Chromium OS.
Specifically, this patch makes the following changes:
1. Turn the LinuxDumper class into a base class and move ptrace related
code into a new derived class, LinuxPtraceDumper.
2. Add a LinuxCoreDumper class, which is derived from LinuxDumper, to
extract information from a crashed process via a core dump file instead
of ptrace.
3. Add a WriteMinidumpFromCore function to
src/client/linux/minidump_writer/minidump_writer.h,
which uses LinuxCoreDumper to extract information from a core dump file.
4. Add a core2md utility, which simply wraps WriteMinidumpFromCore, for
converting a core dump to a minidump.
BUG=455
TEST=Tested the following:
1. Build on 32-bit and 64-bit Linux with gcc 4.4.3 and gcc 4.6.
2. Build on Mac OS X 10.6.8 with gcc 4.2 and clang 3.0 (with latest gmock).
3. All unit tests pass.
4. Run Chromium OS tests to test core2md.
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats |
Patch |
![](/static/closedtriangle.gif) |
M |
Makefile.am
|
View
|
|
6 chunks |
+37 lines, -20 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
Makefile.in
|
View
|
|
33 chunks |
+172 lines, -52 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/client/linux/minidump_writer/linux_core_dumper.cc
|
View
|
1
|
1 chunk |
+234 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/client/linux/minidump_writer/linux_core_dumper.h
|
View
|
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/client/linux/minidump_writer/linux_core_dumper_unittest.cc
|
View
|
1
|
1 chunk |
+117 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/client/linux/minidump_writer/linux_dumper.cc
|
View
|
|
10 chunks |
+9 lines, -266 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/client/linux/minidump_writer/linux_dumper.h
|
View
|
|
5 chunks |
+31 lines, -16 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
D |
src/client/linux/minidump_writer/linux_dumper_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -428 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/client/linux/minidump_writer/linux_ptrace_dumper.cc
|
View
|
|
1 chunk |
+292 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/client/linux/minidump_writer/linux_ptrace_dumper.h
|
View
|
1
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc
|
View
|
|
1 chunk |
+430 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/client/linux/minidump_writer/minidump_writer.cc
|
View
|
|
8 chunks |
+43 lines, -17 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/client/linux/minidump_writer/minidump_writer.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/common/linux/elf_core_dump_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/common/linux/tests/crash_generator.cc
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/common/linux/tests/crash_generator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
src/tools/linux/core2md/core2md.cc
|
View
|
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|