From 07e521c396be01162b4cb8119954401b7eaa510c Mon Sep 17 00:00:00 2001 From: "benchan@chromium.org" Date: Sat, 7 Jan 2012 02:25:22 +0000 Subject: 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. Review URL: http://breakpad.appspot.com/337001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@900 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/tests/auto_tempdir.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common/tests/auto_tempdir.h') diff --git a/src/common/tests/auto_tempdir.h b/src/common/tests/auto_tempdir.h index e78d7391..ccfd81bc 100644 --- a/src/common/tests/auto_tempdir.h +++ b/src/common/tests/auto_tempdir.h @@ -59,9 +59,9 @@ class AutoTempDir { DeleteRecursively(path_); } - const std::string& path() { - return path_; - } + const std::string& path() const { + return path_; + } private: void DeleteRecursively(const std::string& path) { -- cgit v1.2.1