OLD | NEW |
1 // -*- mode: c++ -*- | 1 // -*- mode: c++ -*- |
2 | 2 |
3 // Copyright (c) 2011, Google Inc. | 3 // Copyright (c) 2011, Google Inc. |
4 // All rights reserved. | 4 // All rights reserved. |
5 // | 5 // |
6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
7 // modification, are permitted provided that the following conditions are | 7 // modification, are permitted provided that the following conditions are |
8 // met: | 8 // met: |
9 // | 9 // |
10 // * Redistributions of source code must retain the above copyright | 10 // * Redistributions of source code must retain the above copyright |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // or shared library, and write it to SYM_STREAM in the Breakpad symbol | 60 // or shared library, and write it to SYM_STREAM in the Breakpad symbol |
61 // file format. | 61 // file format. |
62 // If OBJ_FILE has been stripped but contains a .gnu_debuglink section, | 62 // If OBJ_FILE has been stripped but contains a .gnu_debuglink section, |
63 // then look for the debug file in DEBUG_DIRS. | 63 // then look for the debug file in DEBUG_DIRS. |
64 // SYMBOL_DATA allows limiting the type of symbol data written. | 64 // SYMBOL_DATA allows limiting the type of symbol data written. |
65 bool WriteSymbolFile(const string &obj_file, | 65 bool WriteSymbolFile(const string &obj_file, |
66 const std::vector<string>& debug_dirs, | 66 const std::vector<string>& debug_dirs, |
67 const DumpOptions& options, | 67 const DumpOptions& options, |
68 std::ostream &sym_stream); | 68 std::ostream &sym_stream); |
69 | 69 |
| 70 // Read the selected object file's debugging information, and write out the |
| 71 // header only to |stream|. Return true on success; if an error occurs, report |
| 72 // it and return false. |
| 73 bool WriteSymbolFileHeader(const string& obj_file, |
| 74 std::ostream &sym_stream); |
| 75 |
70 // As above, but simply return the debugging information in MODULE | 76 // As above, but simply return the debugging information in MODULE |
71 // instead of writing it to a stream. The caller owns the resulting | 77 // instead of writing it to a stream. The caller owns the resulting |
72 // Module object and must delete it when finished. | 78 // Module object and must delete it when finished. |
73 bool ReadSymbolData(const string& obj_file, | 79 bool ReadSymbolData(const string& obj_file, |
74 const std::vector<string>& debug_dirs, | 80 const std::vector<string>& debug_dirs, |
75 const DumpOptions& options, | 81 const DumpOptions& options, |
76 Module** module); | 82 Module** module); |
77 | 83 |
78 } // namespace google_breakpad | 84 } // namespace google_breakpad |
79 | 85 |
80 #endif // COMMON_LINUX_DUMP_SYMBOLS_H__ | 86 #endif // COMMON_LINUX_DUMP_SYMBOLS_H__ |
OLD | NEW |