1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/profiler/shim_mac_dump_syms.mm Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "common/mac/dump_syms.h" 1.10 +#include "shim_mac_dump_syms.h" 1.11 + 1.12 +bool ReadSymbolData_DARWIN(const string& obj_file, 1.13 + const std::vector<string> &debug_dirs, 1.14 + SymbolData symbol_data, 1.15 + google_breakpad::Module** module) 1.16 +{ 1.17 + google_breakpad::DumpSymbols ds(symbol_data); 1.18 + 1.19 + NSString* obj_file_ns = [NSString stringWithUTF8String:obj_file.c_str()]; 1.20 + // TODO: remember to [obj_file_ns release] this at the exit points 1.21 + 1.22 + if (!ds.Read(obj_file_ns)) 1.23 + return false; 1.24 + 1.25 + return ds.ReadSymbolData(module); 1.26 +}