aboutsummaryrefslogtreecommitdiff
path: root/src/tools/mac/dump_syms/dump_syms_tool.mm
diff options
context:
space:
mode:
authorqsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-10-03 16:20:53 +0000
committerqsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-10-03 16:20:53 +0000
commit9b6b41b8ca2dc0a1c15d998e82eee472cc93bfe4 (patch)
treea0cef7ce6483fc53ed8616e0bf99f49115efa2c5 /src/tools/mac/dump_syms/dump_syms_tool.mm
parentFix merge error from r1055 (diff)
downloadbreakpad-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/dump_syms_tool.mm')
-rw-r--r--src/tools/mac/dump_syms/dump_syms_tool.mm7
1 files changed, 5 insertions, 2 deletions
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 <vector>
#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);