Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(682)

Issue 337001: Add utilities for processing Linux core dump files. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by Ben Chan
Modified:
12 years, 8 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add utilities for processing Linux core dump files.

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. Add an ElfCoreDump class for processing Linux core dump files, which will
   later be used to implement the core dump to minidump conversion.
2. Add a CrashGenerator class for generating a crash with a core dump file
   for testing the functionalities of ElfCoreDump.
3. Move some utility functions for reading/writing files to file_utils.h.

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.

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 14

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M Makefile.am View 1 2 5 chunks +9 lines, -1 line 0 comments Download
M Makefile.in View 1 2 26 chunks +123 lines, -5 lines 0 comments Download
A src/common/linux/elf_core_dump.cc View 1 2 1 chunk +179 lines, -0 lines 0 comments Download
A src/common/linux/elf_core_dump.h View 1 2 1 chunk +153 lines, -0 lines 0 comments Download
A src/common/linux/elf_core_dump_unittest.cc View 1 2 1 chunk +238 lines, -0 lines 0 comments Download
M src/common/linux/memory_mapped_file_unittest.cc View 1 2 4 chunks +6 lines, -23 lines 0 comments Download
A src/common/linux/tests/crash_generator.cc View 1 2 1 chunk +206 lines, -0 lines 0 comments Download
A src/common/linux/tests/crash_generator.h View 1 chunk +108 lines, -0 lines 0 comments Download
M src/common/tests/auto_tempdir.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
A src/common/tests/file_utils.cc View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
A src/common/tests/file_utils.h View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Ben Chan
12 years, 8 months ago #1
Lei Zhang (chromium)
http://breakpad.appspot.com/337001/diff/1/5 File src/common/linux/elf_core_dump.h (right): http://breakpad.appspot.com/337001/diff/1/5#newcode51 Line 51: class ElfCoreDump { Some of the Breakpad tools ...
12 years, 8 months ago #2
Ben Chan
http://breakpad.appspot.com/337001/diff/1/5 File src/common/linux/elf_core_dump.h (right): http://breakpad.appspot.com/337001/diff/1/5#newcode51 Line 51: class ElfCoreDump { On 2012/01/03 23:45:09, thestig wrote: ...
12 years, 8 months ago #3
kmixter
http://breakpad.appspot.com/337001/diff/1/5 File src/common/linux/elf_core_dump.h (right): http://breakpad.appspot.com/337001/diff/1/5#newcode51 Line 51: class ElfCoreDump { On 2012/01/04 00:16:07, Ben Chan ...
12 years, 8 months ago #4
Ben Chan
http://breakpad.appspot.com/337001/diff/13/5004 File src/common/linux/elf_core_dump.h (right): http://breakpad.appspot.com/337001/diff/13/5004#newcode51 Line 51: class ElfCoreDump { On 2012/01/05 02:43:55, kmixter wrote: ...
12 years, 8 months ago #5
Ben Chan
http://breakpad.appspot.com/337001/diff/10001/11007 File src/common/linux/tests/crash_generator.cc (right): http://breakpad.appspot.com/337001/diff/10001/11007#newcode102 Line 102: return reinterpret_cast<pid_t*>(shared_memory_) + index; This change is just ...
12 years, 8 months ago #6
kmixter
12 years, 8 months ago #7
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted