diff options
author | Roman Margold <rmargold@chromium.org> | 2017-02-01 16:26:39 -0800 |
---|---|---|
committer | Roman Margold <rmargold@chromium.org> | 2017-02-01 16:26:39 -0800 |
commit | 24c359d32937bc99e3c818cce14939a2b31b6563 (patch) | |
tree | ee80449b56b37400892627baf1414871e2db6948 /src/tools | |
parent | Revert "iOS client identifies itself via URL params" (diff) | |
download | breakpad-24c359d32937bc99e3c818cce14939a2b31b6563.tar.xz |
Revert "Several fixes for broken Mac build"
This reverts commit 5c521532fc0a1b65f42c0d61d2da206eadf318b8.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/mac/dump_syms/macho_dump.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/mac/dump_syms/macho_dump.cc b/src/tools/mac/dump_syms/macho_dump.cc index 0263ed5e..d882bbe8 100644 --- a/src/tools/mac/dump_syms/macho_dump.cc +++ b/src/tools/mac/dump_syms/macho_dump.cc @@ -140,12 +140,13 @@ void DumpFile(const char *filename) { size_t object_files_size; const SuperFatArch* super_fat_object_files = fat_reader.object_files(&object_files_size); + struct fat_arch *object_files; + if (!super_fat_object_files->ConvertToFatArch(object_files)) { + exit(1); + } printf(" object file count: %ld\n", object_files_size); for (size_t i = 0; i < object_files_size; i++) { - struct fat_arch file; - if (!super_fat_object_files->ConvertToFatArch(&file)) { - exit(1); - } + const struct fat_arch &file = object_files[i]; const NXArchInfo *fat_arch_info = google_breakpad::BreakpadGetArchInfoFromCpuType( file.cputype, file.cpusubtype); |