aboutsummaryrefslogtreecommitdiff
path: root/src/tools/mac
diff options
context:
space:
mode:
authorRoman Margold <rmargold@chromium.org>2017-02-01 08:33:44 -0800
committerRoman Margold <rmargold@chromium.org>2017-02-01 08:33:44 -0800
commit5c521532fc0a1b65f42c0d61d2da206eadf318b8 (patch)
tree0589550ce92cfdb0797a73c18d10250be90432a5 /src/tools/mac
parentSanitize dumped stacks to remove data that may be identifiable. (diff)
downloadbreakpad-5c521532fc0a1b65f42c0d61d2da206eadf318b8.tar.xz
Several fixes for broken Mac build
Diffstat (limited to 'src/tools/mac')
-rw-r--r--src/tools/mac/dump_syms/macho_dump.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tools/mac/dump_syms/macho_dump.cc b/src/tools/mac/dump_syms/macho_dump.cc
index d882bbe8..0263ed5e 100644
--- a/src/tools/mac/dump_syms/macho_dump.cc
+++ b/src/tools/mac/dump_syms/macho_dump.cc
@@ -140,13 +140,12 @@ 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++) {
- const struct fat_arch &file = object_files[i];
+ struct fat_arch file;
+ if (!super_fat_object_files->ConvertToFatArch(&file)) {
+ exit(1);
+ }
const NXArchInfo *fat_arch_info =
google_breakpad::BreakpadGetArchInfoFromCpuType(
file.cputype, file.cpusubtype);