diff options
author | qsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-10-03 16:20:53 +0000 |
---|---|---|
committer | qsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-10-03 16:20:53 +0000 |
commit | 9b6b41b8ca2dc0a1c15d998e82eee472cc93bfe4 (patch) | |
tree | a0cef7ce6483fc53ed8616e0bf99f49115efa2c5 /src/tools/mac/dump_syms/macho_dump.cc | |
parent | Fix merge error from r1055 (diff) | |
download | breakpad-9b6b41b8ca2dc0a1c15d998e82eee472cc93bfe4.tar.xz |
Add custom implementation of NXGetArchInfoXXX to allow adding new arch.
NXGetArchInfoXXX depends on the OS knowledge of architecture. This CL adds a
custom implementation of those methods to be able to handle newer CPU before
they are handled by the OS. It also add handling for armv7s architecture.
Review URL: https://breakpad.appspot.com/475002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1057 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools/mac/dump_syms/macho_dump.cc')
-rw-r--r-- | src/tools/mac/dump_syms/macho_dump.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/mac/dump_syms/macho_dump.cc b/src/tools/mac/dump_syms/macho_dump.cc index 940df25b..4402bf4e 100644 --- a/src/tools/mac/dump_syms/macho_dump.cc +++ b/src/tools/mac/dump_syms/macho_dump.cc @@ -47,6 +47,7 @@ #include <vector> #include "common/byte_cursor.h" +#include "common/mac/arch_utilities.h" #include "common/mac/macho_reader.h" using google_breakpad::ByteBuffer; @@ -142,8 +143,9 @@ void DumpFile(const char *filename) { 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]; - const NXArchInfo *fat_arch_info - = NXGetArchInfoFromCpuType(file.cputype, file.cpusubtype); + const NXArchInfo *fat_arch_info = + google_breakpad::BreakpadGetArchInfoFromCpuType( + file.cputype, file.cpusubtype); printf("\n object file %ld:\n" " fat header:\n:" " CPU type: %s (%s)\n" |