Commit 60cec130 authored by DonLakeFlyer's avatar DonLakeFlyer

Remove breakpad since not working

parent d1c2f3fb
......@@ -127,69 +127,6 @@ else:WindowsBuild {
else:AndroidBuild {
message("Including support for speech output")
DEFINES += QGC_SPEECH_ENABLED
QMAKE_CXXFLAGS += -g
INCLUDEPATH += \
libs/breakpad/src \
libs/breakpad/src/common/android/include
HEADERS += \
libs/breakpad/src/client/linux/crash_generation/crash_generation_client.h \
libs/breakpad/src/client/linux/handler/exception_handler.h \
libs/breakpad/src/client/linux/handler/minidump_descriptor.h \
libs/breakpad/src/client/linux/log/log.h \
libs/breakpad/src/client/linux/dump_writer_common/thread_info.h \
libs/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h \
libs/breakpad/src/client/linux/microdump_writer/microdump_writer.h \
libs/breakpad/src/client/linux/minidump_writer/cpu_set.h \
libs/breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader.h \
libs/breakpad/src/client/linux/minidump_writer/minidump_writer.h \
libs/breakpad/src/client/linux/minidump_writer/line_reader.h \
libs/breakpad/src/client/linux/minidump_writer/linux_dumper.h \
libs/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.h \
libs/breakpad/src/client/linux/minidump_writer/directory_reader.h \
libs/breakpad/src/client/minidump_file_writer-inl.h \
libs/breakpad/src/client/minidump_file_writer.h \
libs/breakpad/src/common/scoped_ptr.h \
libs/breakpad/src/common/linux/linux_libc_support.h \
libs/breakpad/src/common/linux/eintr_wrapper.h \
libs/breakpad/src/common/linux/ignore_ret.h \
libs/breakpad/src/common/linux/file_id.h \
libs/breakpad/src/common/linux/memory_mapped_file.h \
libs/breakpad/src/common/linux/safe_readlink.h \
libs/breakpad/src/common/linux/guid_creator.h \
libs/breakpad/src/common/linux/elfutils.h \
libs/breakpad/src/common/linux/elfutils-inl.h \
libs/breakpad/src/common/linux/elf_gnu_compat.h \
libs/breakpad/src/common/using_std_string.h \
libs/breakpad/src/common/memory.h \
libs/breakpad/src/common/basictypes.h \
libs/breakpad/src/common/memory_range.h \
libs/breakpad/src/common/string_conversion.h \
libs/breakpad/src/common/convert_UTF.h \
libs/breakpad/src/google_breakpad/common/minidump_format.h \
libs/breakpad/src/google_breakpad/common/minidump_size.h \
libs/breakpad/src/google_breakpad/common/breakpad_types.h \
libs/breakpad/src/third_party/lss/linux_syscall_support.h
SOURCES += \
libs/breakpad/src/client/linux/crash_generation/crash_generation_client.cc \
libs/breakpad/src/client/linux/handler/exception_handler.cc \
libs/breakpad/src/client/linux/handler/minidump_descriptor.cc \
libs/breakpad/src/client/linux/dump_writer_common/thread_info.cc \
libs/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc \
libs/breakpad/src/client/linux/log/log.cc \
libs/breakpad/src/client/linux/microdump_writer/microdump_writer.cc \
libs/breakpad/src/client/linux/minidump_writer/minidump_writer.cc \
libs/breakpad/src/client/linux/minidump_writer/linux_dumper.cc \
libs/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc \
libs/breakpad/src/client/minidump_file_writer.cc \
libs/breakpad/src/common/linux/linux_libc_support.cc \
libs/breakpad/src/common/linux/file_id.cc \
libs/breakpad/src/common/linux/memory_mapped_file.cc \
libs/breakpad/src/common/linux/safe_readlink.cc \
libs/breakpad/src/common/linux/guid_creator.cc \
libs/breakpad/src/common/linux/elfutils.cc \
libs/breakpad/src/common/string_conversion.cc \
libs/breakpad/src/common/convert_UTF.c \
libs/breakpad/src/common/android/breakpad_getcontext.S
}
#
......
opensource@google.com
# Copyright 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# This is used to mimic the svn:externals mechanism for gclient (both Git and
# SVN) based checkouts of Breakpad. As such, its use is entirely optional. If
# using a manually managed SVN checkout as opposed to a gclient managed checkout
# you can still use the hooks mechanism for generating project files by calling
# 'gclient runhooks' rather than 'gclient sync'.
deps = {
# Logging code.
"src/src/third_party/glog":
"https://github.com/google/glog.git" +
"@v0.3.4",
# Testing libraries and utilities.
"src/src/testing":
"https://github.com/google/googletest.git" +
"@release-1.8.0",
# Protobuf.
"src/src/third_party/protobuf/protobuf":
"https://github.com/google/protobuf.git" +
"@cb6dd4ef5f82e41e06179dcd57d3b1d9246ad6ac",
# GYP project generator.
"src/src/tools/gyp":
"https://chromium.googlesource.com/external/gyp/" +
"@e8ab0833a42691cd2184bd4c45d779e43821d3e0",
# Linux syscall support.
"src/src/third_party/lss":
"https://chromium.googlesource.com/linux-syscall-support/" +
"@c555f533313986d29c827eb59c7bd99fd37b3ec4",
}
hooks = [
{
# TODO(chrisha): Fix the GYP files so that they work without
# --no-circular-check.
"pattern": ".",
"action": ["python",
"src/src/tools/gyp/gyp_main.py",
"--no-circular-check",
"src/src/client/windows/breakpad_client.gyp"],
},
{
# XXX: this and above should all be wired into build/all.gyp ?
"action": ["python",
"src/src/tools/gyp/gyp_main.py",
"--no-circular-check",
"src/src/tools/windows/tools_windows.gyp"],
},
{
# Keep the manifest up to date.
"action": ["python", "src/src/tools/python/deps-to-manifest.py",
"src/DEPS", "src/default.xml"],
},
]
This diff is collapsed.
Copyright (c) 2006, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------
Copyright 2001-2004 Unicode, Inc.
Disclaimer
This source code is provided as is by Unicode, Inc. No claims are
made as to fitness for any particular purpose. No warranties of any
kind are expressed or implied. The recipient agrees to determine
applicability of information provided. If this file has been
purchased on magnetic or optical media from Unicode, Inc., the
sole remedy for any claim will be exchange of defective media
within 90 days of receipt.
Limitations on Rights to Redistribute This Code
Unicode, Inc. hereby grants the right to freely use the information
supplied in this file in the creation of products supporting the
Unicode Standard, and to make copies of this file in any form
for internal or external distribution as long as this notice
remains attached.
Google Breakpad for Android
===========================
This document explains how to use the Google Breakpad client library
on Android, and later generate valid stack traces from the minidumps
it generates.
This release supports ARM, x86 and MIPS based Android systems.
This release requires NDK release r11c or higher.
I. Building the client library:
===============================
The Android client is built as a static library that you can
link into your own Android native code. There are two ways to
build it:
I.1. Building with ndk-build:
-----------------------------
If you're using the ndk-build build system, you can follow
these simple steps:
1/ Include android/google_breakpad/Android.mk from your own
project's Android.mk
This can be done either directly, or using ndk-build's
import-module feature.
2/ Link the library to one of your modules by using:
LOCAL_STATIC_LIBRARIES += breakpad_client
NOTE: The client library requires a C++ STL implementation,
which you can select with APP_STL in your Application.mk
It has been tested succesfully with both STLport and GNU libstdc++
I.2. Building with a standalone Android toolchain:
--------------------------------------------------
All you need to do is configure your build with the right 'host'
value, and disable the processor and tools, as in:
$GOOGLE_BREAKPAD_PATH/configure --host=arm-linux-androideabi \
--disable-processor \
--disable-tools
make -j4
The library will be under src/client/linux/libbreakpad_client.a
You can also use 'make check' to run the test suite on a connected
Android device. This requires the Android 'adb' tool to be in your
path.
II. Using the client library in Android:
========================================
The usage instructions are very similar to the Linux ones that are
found at https://chromium.googlesource.com/breakpad/breakpad/+/master/docs/linux_starter_guide.md
1/ You need to include "client/linux/handler/exception_handler.h" from a C++
source file.
2/ If you're not using ndk-build, you also need to:
- add the following to your compiler include search paths:
$GOOGLE_BREAKPAD_PATH/src
$GOOGLE_BREAKPAD_PATH/src/common/android/include
- add -llog to your linker flags
Note that ndk-build does that for your automatically.
3/ Keep in mind that there is no /tmp directory on Android.
If you use the library from a regular Android applications, specify a
path under your app-specific storage directory. An alternative is to
store them on the SDCard, but this requires a specific permission.
For a concrete example, see the sample test application under
android/sample_app. See its README for more information.
III. Getting a stack trace on the host:
=======================================
This process is similar to other platforms, but here's a quick example:
1/ Retrieve the minidumps on your development machine.
2/ Dump the symbols for your native libraries with the 'dump_syms' tool.
This first requires building the host version of Google Breakpad, then
calling:
dump_syms $PROJECT_PATH/obj/local/$ABI/libfoo.so > libfoo.so.sym
3/ Create the symbol directory hierarchy.
The first line of the generated libfoo.so.sym will have a "MODULE"
entry that carries a hexadecimal version number, e.g.:
MODULE Linux arm D51B4A5504974FA6ECC1869CAEE3603B0 test_google_breakpad
Note: The second field could be either 'Linux' or 'Android'.
Extract the version number, and a 'symbol' directory, for example:
$PROJECT_PATH/symbols/libfoo.so/$VERSION/
Copy/Move your libfoo.sym file there.
4/ Invoke minidump_stackwalk to create the stack trace:
minidump_stackwalk $MINIDUMP_FILE $PROJECT_PATH/symbols
Note that various helper scripts can be found on the web to automate these
steps.