diff --git a/src/common/mac/HTTPPutRequest.m b/src/common/mac/HTTPPutRequest.m index ec67376b..f6f1400a 100644 --- a/src/common/mac/HTTPPutRequest.m +++ b/src/common/mac/HTTPPutRequest.m @@ -50,13 +50,7 @@ //============================================================================= - (NSData*)bodyData { - NSMutableData* postBody = [NSMutableData data]; - - [HTTPRequest appendFileToBodyData:postBody - withName:@"symbol_file" - withFileOrData:file_]; - - return postBody; + return [NSData dataWithContentsOfFile:file_]; } @end diff --git a/src/common/mac/dump_syms.cc b/src/common/mac/dump_syms.cc index ae69ca49..259bee20 100644 --- a/src/common/mac/dump_syms.cc +++ b/src/common/mac/dump_syms.cc @@ -307,6 +307,10 @@ string DumpSymbols::Identifier() { i = compacted.find('-', i)) compacted.erase(i, 1); + // The pdb for these IDs has an extra byte, so to make everything uniform put + // a 0 on the end of mac IDs. + compacted += "0"; + return compacted; } @@ -411,7 +415,6 @@ bool DumpSymbols::CreateEmptyModule(scoped_ptr& module) { string identifier = Identifier(); if (identifier.empty()) return false; - identifier += "0"; // Create a module to hold the debugging information. module.reset(new Module(module_name,