mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-03 13:14:45 +01:00
Mac: Fix more errors from clang to get crash_report.xcodeproj close to compiling.
R=mark@chromium.org Review URL: https://breakpad.appspot.com/593002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1176 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
7304a2c187
commit
09f8989389
4 changed files with 7 additions and 5 deletions
|
|
@ -164,7 +164,7 @@ static void PrintRegisters(const CallStack *stack, const string &cpu) {
|
|||
const StackFramePPC *frame_ppc =
|
||||
reinterpret_cast<const StackFramePPC*>(frame);
|
||||
|
||||
if (frame_ppc->context_validity & StackFramePPC::CONTEXT_VALID_ALL ==
|
||||
if ((frame_ppc->context_validity & StackFramePPC::CONTEXT_VALID_ALL) ==
|
||||
StackFramePPC::CONTEXT_VALID_ALL) {
|
||||
sequence = PrintRegister("srr0", frame_ppc->context.srr0, sequence);
|
||||
sequence = PrintRegister("srr1", frame_ppc->context.srr1, sequence);
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ OnDemandSymbolSupplier::OnDemandSymbolSupplier(const string &search_dir,
|
|||
[dirEnum skipDescendents];
|
||||
} else {
|
||||
NSString *filePath = [symbolSearchPath stringByAppendingPathComponent:fileName];
|
||||
NSString *dataStr = [[[NSString alloc] initWithContentsOfFile:filePath] autorelease];
|
||||
NSString *dataStr = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:NULL];
|
||||
if (dataStr) {
|
||||
// Check file to see if it is of appropriate type, and grab module
|
||||
// name.
|
||||
|
|
@ -280,7 +280,7 @@ bool OnDemandSymbolSupplier::GenerateSymbolFile(const CodeModule *module,
|
|||
NSString *module_str = [[NSFileManager defaultManager]
|
||||
stringWithFileSystemRepresentation:module_path.c_str()
|
||||
length:module_path.length()];
|
||||
DumpSymbols dump;
|
||||
DumpSymbols dump(ALL_SYMBOL_DATA, false);
|
||||
if (dump.Read(module_str)) {
|
||||
// What Breakpad calls "x86" should be given to the system as "i386".
|
||||
std::string architecture;
|
||||
|
|
@ -293,7 +293,7 @@ bool OnDemandSymbolSupplier::GenerateSymbolFile(const CodeModule *module,
|
|||
if (dump.SetArchitecture(architecture)) {
|
||||
std::fstream file([symbol_path fileSystemRepresentation],
|
||||
std::ios_base::out | std::ios_base::trunc);
|
||||
dump.WriteSymbolFile(file, true);
|
||||
dump.WriteSymbolFile(file);
|
||||
} else {
|
||||
printf("Architecture %s not available for %s\n",
|
||||
system_info->cpu.c_str(), name.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue