|
This patch adds support for building the Linux client code with the Android NDK.
It turns out to be fairly straightforward. The NDK is missing quite a few
headers that we use, but most of the definitions are there, just in other
headers, so it's not a problem. There are only two that I actually needed to
provide skeletons for: link.h, for a definition of the ElfW macro from, and
ucontext.h, for ucontext_t. For the former I just re-implemented it. For the
latter, I found the code I needed in the V8 source. The rest of the patch is
some other fiddly things, plus some test changes (mostly changing the hardcoded
temp dir).
There's also some linux_syscall_support changes to go along with this, I'll
submit those elsewhere. I also have some tiny Google Test changes, I'll see
about upstreaming those (but they're only really necessary for building the unit
tests anyway). The tests build and mostly pass with this patch, it's still
failing my recently-added InstructionPointerMemory tests, although I haven't
sorted out why yet.
The stock NDK doesn't include an STL implementation, so I'm using a Crystax NDK
for compiling. Since the NDK is primarily focused on using Makefiles for
building, I'm using the following shell script to invoke Breakpad's configure:
http://people.mozilla.com/~tmielczarek/build-android.txt
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats |
Patch |
|
M |
configure
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
configure.ac
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
src/client/linux/android_link.h
|
View
|
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/client/linux/android_ucontext.h
|
View
|
|
1 chunk |
+77 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/client/linux/handler/exception_handler.cc
|
View
|
|
3 chunks |
+8 lines, -2 lines |
4 comments
|
Download
|
|
M |
src/client/linux/handler/exception_handler.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/client/linux/handler/exception_handler_unittest.cc
|
View
|
|
14 chunks |
+20 lines, -13 lines |
3 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/line_reader_unittest.cc
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_dumper.cc
|
View
|
|
3 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_dumper.h
|
View
|
|
2 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_dumper_unittest.cc
|
View
|
|
2 chunks |
+21 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/minidump_writer.cc
|
View
|
|
5 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
src/client/linux/minidump_writer/minidump_writer_unittest.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/common/linux/file_id.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|