Switch mac DumpSymbols::WriteSymbolFile to take an ostream instead of a FILE* to match the changes to Module::Write
R=mark at http://breakpad.appspot.com/294001/show git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@818 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
d01a9f8bc4
commit
48550041f9
3 changed files with 6 additions and 3 deletions
|
@ -40,6 +40,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <ostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -111,7 +112,7 @@ class DumpSymbols {
|
||||||
// Read the selected object file's debugging information, and write it
|
// Read the selected object file's debugging information, and write it
|
||||||
// out to |stream|. Return true on success; if an error occurs, report it
|
// out to |stream|. Return true on success; if an error occurs, report it
|
||||||
// and return false.
|
// and return false.
|
||||||
bool WriteSymbolFile(FILE *stream);
|
bool WriteSymbolFile(std::ostream &stream);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Used internally.
|
// Used internally.
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
#include <mach-o/fat.h>
|
#include <mach-o/fat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <ostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -420,7 +421,7 @@ bool DumpSymbols::LoadCommandDumper::SymtabCommand(const ByteBuffer &entries,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DumpSymbols::WriteSymbolFile(FILE *stream) {
|
bool DumpSymbols::WriteSymbolFile(std::ostream &stream) {
|
||||||
// Select an object file, if SetArchitecture hasn't been called to set one
|
// Select an object file, if SetArchitecture hasn't been called to set one
|
||||||
// explicitly.
|
// explicitly.
|
||||||
if (!selected_object_file_) {
|
if (!selected_object_file_) {
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
#include <mach-o/arch.h>
|
#include <mach-o/arch.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common/mac/dump_syms.h"
|
#include "common/mac/dump_syms.h"
|
||||||
|
@ -82,7 +83,7 @@ static bool Start(const Options &options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return dump_symbols.WriteSymbolFile(stdout);
|
return dump_symbols.WriteSymbolFile(std::cout);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
Loading…
Reference in a new issue