|
Fix Mac Breakpad host tools to build in Linux cross-compile
We're working on building our Firefox Mac builds as a Linux cross-compile
( https://bugzilla.mozilla.org/show_bug.cgi?id=921040) and we need symbol
dumping to work. This change ports the Mac dump_syms tool to build and work
on Linux. I've tested it and it produces identical output to running the
tool on Mac.
The bulk of the work here was converting src/common/mac/dump_syms.mm and
src/tools/mac/dump_syms/dump_syms_tool.mm from ObjC++ to C++ and removing
their use of Foundation classes in favor of standard C/C++.
This won't compile out-of-the-box on Linux, it requires some Mac system
headers that are not included in this patch. I have those tentatively in
a separate patch to land in Gecko
( http://hg.mozilla.org/users/tmielczarek_mozilla.com/mc/rev/5fb8da23c83c),
but I wasn't sure if you'd be interested in having them in the Breakpad tree.
We could almost certainly pare down the set of headers included there, I
didn't spend too much time trying to minimize them (we primarily just need
the Mach-O structs and a few associated bits).
I just realized that this patch is missing updating the XCode project files
(ugh). I'll fix that up in a bit.
R=mark@chromium.org
BUG=https://bugzilla.mozilla.org/show_bug.cgi?id=543111
Committed: https://chromium.googlesource.com/breakpad/breakpad/+/6cee755e09223833137cefa589037c1448e44fa2
Total comments: 25
Total comments: 7
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+4533 lines, -1061 lines) |
Patch |
|
M |
Makefile.am
|
View
|
1
2
|
6 chunks |
+65 lines, -3 lines |
0 comments
|
Download
|
|
M |
Makefile.in
|
View
|
1
2
|
32 chunks |
+972 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/common/common.gyp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/common/mac/arch_utilities.cc
|
View
|
1
|
2 chunks |
+108 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/common/mac/byteswap.h
|
View
|
1
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/common/mac/dump_syms.h
|
View
|
1
|
4 chunks |
+5 lines, -12 lines |
0 comments
|
Download
|
|
A + |
src/common/mac/dump_syms.cc
|
View
|
1
|
9 chunks |
+98 lines, -75 lines |
2 comments
|
Download
|
|
D |
src/common/mac/dump_syms.mm
|
View
|
|
1 chunk |
+0 lines, -603 lines |
0 comments
|
Download
|
|
M |
src/common/mac/file_id.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/common/mac/macho_id.cc
|
View
|
1
|
9 chunks |
+17 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/common/mac/macho_reader_unittest.cc
|
View
|
1
|
10 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/common/mac/macho_utilities.h
|
View
|
|
1 chunk |
+19 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/common/mac/macho_utilities.cc
|
View
|
|
3 chunks |
+77 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/common/mac/macho_walker.cc
|
View
|
1
|
7 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/common/stabs_reader.h
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/README
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/architecture/byte_order.h
|
View
|
1
2
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/i386/_types.h
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach-o/arch.h
|
View
|
1
2
|
1 chunk |
+105 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach-o/fat.h
|
View
|
1
2
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach-o/loader.h
|
View
|
1
2
|
1 chunk |
+1402 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach-o/nlist.h
|
View
|
1
2
|
1 chunk |
+312 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/boolean.h
|
View
|
1
2
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/i386/boolean.h
|
View
|
1
2
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/i386/vm_param.h
|
View
|
1
2
|
1 chunk |
+157 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/i386/vm_types.h
|
View
|
1
2
|
1 chunk |
+140 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/machine.h
|
View
|
1
2
|
1 chunk |
+346 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/machine/boolean.h
|
View
|
1
2
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/machine/thread_state.h
|
View
|
1
2
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/machine/thread_status.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/machine/vm_types.h
|
View
|
1
2
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/thread_status.h
|
View
|
1
2
|
1 chunk |
+94 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/third_party/mac_headers/mach/vm_prot.h
|
View
|
1
2
|
1 chunk |
+140 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/tools/mac/dump_syms/dump_syms.xcodeproj/project.pbxproj
|
View
|
1
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
A + |
src/tools/mac/dump_syms/dump_syms_tool.cc
|
View
|
1
|
6 chunks |
+12 lines, -14 lines |
0 comments
|
Download
|
|
D |
src/tools/mac/dump_syms/dump_syms_tool.mm
|
View
|
|
1 chunk |
+0 lines, -257 lines |
0 comments
|
Download
|
|
M |
src/tools/mac/tools_mac.gypi
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|