michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "common/mac/dump_syms.h" michael@0: #include "shim_mac_dump_syms.h" michael@0: michael@0: bool ReadSymbolData_DARWIN(const string& obj_file, michael@0: const std::vector &debug_dirs, michael@0: SymbolData symbol_data, michael@0: google_breakpad::Module** module) michael@0: { michael@0: google_breakpad::DumpSymbols ds(symbol_data); michael@0: michael@0: NSString* obj_file_ns = [NSString stringWithUTF8String:obj_file.c_str()]; michael@0: // TODO: remember to [obj_file_ns release] this at the exit points michael@0: michael@0: if (!ds.Read(obj_file_ns)) michael@0: return false; michael@0: michael@0: return ds.ReadSymbolData(module); michael@0: }