From 9b6b41b8ca2dc0a1c15d998e82eee472cc93bfe4 Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Wed, 3 Oct 2012 16:20:53 +0000 Subject: 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 --- src/tools/mac/dump_syms/dump_syms_tool.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/tools/mac/dump_syms/dump_syms_tool.mm') diff --git a/src/tools/mac/dump_syms/dump_syms_tool.mm b/src/tools/mac/dump_syms/dump_syms_tool.mm index 92ebf211..14bbcbbd 100644 --- a/src/tools/mac/dump_syms/dump_syms_tool.mm +++ b/src/tools/mac/dump_syms/dump_syms_tool.mm @@ -39,6 +39,7 @@ #include #include "common/mac/dump_syms.h" +#include "common/mac/arch_utilities.h" #include "common/mac/macho_utilities.h" using google_breakpad::DumpSymbols; @@ -73,7 +74,8 @@ static bool Start(const Options &options) { for (size_t i = 0; i < available_size; i++) { const struct fat_arch *arch = &available[i]; const NXArchInfo *arch_info = - NXGetArchInfoFromCpuType(arch->cputype, arch->cpusubtype); + google_breakpad::BreakpadGetArchInfoFromCpuType( + arch->cputype, arch->cpusubtype); if (arch_info) fprintf(stderr, "%s (%s)\n", arch_info->name, arch_info->description); else @@ -107,7 +109,8 @@ static void SetupOptions(int argc, const char *argv[], Options *options) { while ((ch = getopt(argc, (char * const *)argv, "a:ch?")) != -1) { switch (ch) { case 'a': { - const NXArchInfo *arch_info = NXGetArchInfoFromName(optarg); + const NXArchInfo *arch_info = + google_breakpad::BreakpadGetArchInfoFromName(optarg); if (!arch_info) { fprintf(stderr, "%s: Invalid architecture: %s\n", argv[0], optarg); Usage(argc, argv); -- cgit v1.2.1