mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-04 13:44:33 +01:00
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
This commit is contained in:
parent
46cbbb847e
commit
983903ee0a
11 changed files with 252 additions and 179 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue