diff options
author | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-03-06 15:32:53 +0000 |
---|---|---|
committer | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-03-06 15:32:53 +0000 |
commit | 983903ee0aef76f7a277ce09de6b12164eba8a32 (patch) | |
tree | 2156b673c7b77dc1cd056ce730d0995fb0f90f41 /src/tools | |
parent | Minor Android fixup for symbol dumping code (diff) | |
download | breakpad-983903ee0aef76f7a277ce09de6b12164eba8a32.tar.xz |
Allow reading just CFI data when reading symbols
R=thestig at https://breakpad.appspot.com/517002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1124 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/linux/dump_syms/dump_syms.cc | 3 | ||||
-rw-r--r-- | src/tools/mac/dump_syms/dump_syms_tool.mm | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/linux/dump_syms/dump_syms.cc b/src/tools/linux/dump_syms/dump_syms.cc index aa504589..f58952ed 100644 --- a/src/tools/linux/dump_syms/dump_syms.cc +++ b/src/tools/linux/dump_syms/dump_syms.cc @@ -68,7 +68,8 @@ int main(int argc, char **argv) { debug_dirs.push_back(argv[debug_dir_index]); } - if (!WriteSymbolFile(binary, debug_dirs, cfi, std::cout)) { + SymbolData symbol_data = cfi ? ALL_SYMBOL_DATA : NO_CFI; + if (!WriteSymbolFile(binary, debug_dirs, symbol_data, std::cout)) { fprintf(stderr, "Failed to write symbol file.\n"); return 1; } diff --git a/src/tools/mac/dump_syms/dump_syms_tool.mm b/src/tools/mac/dump_syms/dump_syms_tool.mm index 14bbcbbd..68321db3 100644 --- a/src/tools/mac/dump_syms/dump_syms_tool.mm +++ b/src/tools/mac/dump_syms/dump_syms_tool.mm @@ -54,7 +54,7 @@ struct Options { //============================================================================= static bool Start(const Options &options) { - DumpSymbols dump_symbols; + DumpSymbols dump_symbols(options.cfi ? ALL_SYMBOL_DATA : NO_CFI); if (!dump_symbols.Read(options.srcPath)) return false; @@ -86,7 +86,7 @@ static bool Start(const Options &options) { } } - return dump_symbols.WriteSymbolFile(std::cout, options.cfi); + return dump_symbols.WriteSymbolFile(std::cout); } //============================================================================= |