Index: src/common/module.h |
=================================================================== |
--- a/src/common/module.h |
+++ b/src/common/module.h |
@@ -33,18 +33,17 @@ |
// module.h: Define google_breakpad::Module. A Module holds debugging |
// information, and can write that information out as a Breakpad |
// symbol file. |
#ifndef COMMON_LINUX_MODULE_H__ |
#define COMMON_LINUX_MODULE_H__ |
-#include <stdio.h> |
- |
+#include <iostream> |
#include <map> |
#include <set> |
#include <string> |
#include <vector> |
#include "google_breakpad/common/breakpad_types.h" |
namespace google_breakpad { |
@@ -259,28 +258,28 @@ class Module { |
// Call AssignSourceIds, and write this module to STREAM in the |
// breakpad symbol format. Return true if all goes well, or false if |
// an error occurs. This method writes out: |
// - a header based on the values given to the constructor, |
// - the source files added via FindFile, and finally |
// - the functions added via AddFunctions, each with its lines. |
// Addresses in the output are all relative to the load address |
// established by SetLoadAddress. |
- bool Write(FILE *stream); |
+ bool Write(std::ostream &stream); |
private: |
// Report an error that has occurred writing the symbol file, using |
// errno to find the appropriate cause. Return false. |
static bool ReportError(); |
// Write RULE_MAP to STREAM, in the form appropriate for 'STACK CFI' |
// records, without a final newline. Return true if all goes well; |
// if an error occurs, return false, and leave errno set. |
- static bool WriteRuleMap(const RuleMap &rule_map, FILE *stream); |
+ static bool WriteRuleMap(const RuleMap &rule_map, std::ostream &stream); |
// Module header entries. |
string name_, os_, architecture_, id_; |
// The module's nominal load address. Addresses for functions and |
// lines are absolute, assuming the module is loaded at this |
// address. |
Address load_address_; |