From eab03fdb72a77dfd71db028e6e5676e734bdc443 Mon Sep 17 00:00:00 2001 From: "jimblandy@gmail.com" Date: Fri, 7 Aug 2009 19:28:45 +0000 Subject: Linux dumper: Move the data structures representing the breakpad data into their own class. src/linux/common/module.h defines a new class, google_breakpad::Module, that can represent the contents of a breakpad symbol file. Module::Write writes a well-formed symbol file to the given stream. src/linux/common/dump_symbols.cc can now lose its symbol-file-writing code, and change DumpStabsHandler to populate a Module object, rather than the old SymbolInfo/SourceFileInfo/... collection of types. The code to compute function and line sizes, even in the absence of reliable size data in STABS, is moved into a new Finalize method of DumpStabsHandler, which is responsible for completing the Module's contents. a=jimblandy r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@380 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/tools/linux/dump_syms/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tools/linux') diff --git a/src/tools/linux/dump_syms/Makefile b/src/tools/linux/dump_syms/Makefile index a5cf974a..59db7374 100644 --- a/src/tools/linux/dump_syms/Makefile +++ b/src/tools/linux/dump_syms/Makefile @@ -17,7 +17,7 @@ BIN=dump_syms all:$(BIN) DUMP_OBJ=dump_symbols.o guid_creator.o dump_syms.o file_id.o md5.o \ - stabs_reader.o + stabs_reader.o module.o dump_syms:$(DUMP_OBJ) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ @@ -28,6 +28,9 @@ dump_symbols.o:../../../common/linux/dump_symbols.cc stabs_reader.o:../../../common/linux/stabs_reader.cc $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $^ +module.o:../../../common/linux/module.cc + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $^ + guid_creator.o:../../../common/linux/guid_creator.cc $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $^ -- cgit v1.2.1