Breakpad Mac symbol dumper: Add new Mach-O reader class.

This patch adds files defining new classes in the google_breakpad::Mach_O
namespace for parsing fat binaries and Mach-O files. These are used in the
new dumper to handle STABS debugging information, DWARF call frame
information, and .eh_frame exception handling stack walking information.

These new classes are independent of endianness and word size, and
therefore can be used on binaries of all the relevant architectures: x86,
x86_64, ppc, and ARM.

The patch adds a complete set of unit tests for the new classes.
A=jimb R=mark (http://breakpad.appspot.com/93001/show, http://breakpad.appspot.com/115001/show)

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@610 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2010-06-25 16:56:16 +00:00
parent 8ffb12eb35
commit 35c41e00ee
11 changed files with 3306 additions and 31 deletions

View file

@ -68,7 +68,7 @@ using std::list;
using std::string;
using std::vector;
namespace TestAssembler {
namespace test_assembler {
// A Label represents a value not yet known that we need to store in a
// section. As long as all the labels a section refers to are defined
@ -475,7 +475,7 @@ class Section {
Label start_;
};
} // namespace TestAssembler
} // namespace test_assembler
} // namespace google_breakpad
#endif // PROCESSOR_TEST_ASSEMBLER_H_