Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
Include <asm/ptrace.h> to get necessary definitions on AArch64
In glibc commit
https://sourceware.org/git/?p=glibc.git;a=commit;h=7d05a8168b45c0580e1f9a79c2dd26c8f0d31fca,
including <asm/ptrace.h> from <sys/user.h> on AArch64 has been
removed. So the Google Breakpad code, which used to build fine on
glibc 2.18 (CodeSourcery toolchain for example), no longer builds with
glibc 2.19 (Linaro toolchain for example).
To fix this, this patch adds the missing <asm/ptrace.h> include (for
AArch64 only, to be conservative).
This patch has not been submitted upstream, since more recent versions
of Google Breakpad have completely changed this part of the code.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/src/client/linux/minidump_writer/linux_dumper.h
===================================================================
--- a/src/client/linux/minidump_writer/linux_dumper.h
+++ b/src/client/linux/minidump_writer/linux_dumper.h
@@ -43,6 +43,9 @@
#include <stdint.h>
#include <sys/types.h>
#include <sys/user.h>
+#if defined(__aarch64__)
+#include <asm/ptrace.h>
+#endif
#include "common/memory.h"
#include "google_breakpad/common/minidump_format.h"

View File

@@ -0,0 +1,34 @@
config BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
bool
default y if BR2_i386 || BR2_x86_64 || BR2_arm || BR2_aarch64 || \
BR2_mips || BR2_mipsel
config BR2_PACKAGE_GOOGLE_BREAKPAD
bool "google-breakpad"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
help
Google-Breakpad is a library and tool suite that allows you
to distribute an application to users with compiler-provided
debugging information removed, record crashes in compact
"minidump" files, send them back to your server, and produce
C and C++ stack traces from these minidumps. Breakpad can
also write minidumps on request for programs that have not
crashed.
You may want to set BR2_ENABLE_DEBUG, in order to get useful
results.
This target package installs a static library named
libbreakpad_client.a which should be linked into programs
willing to use Google Breakpad. A host variant of this
package is also available, and provides the different tools
needed to extract the debugging symbols from target
binaries.
http://code.google.com/p/google-breakpad/
comment "google-breakpad requires an (e)glibc toolchain w/ C++ enabled"
depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC

View File

@@ -0,0 +1,34 @@
#!/bin/sh
NAME="${0##*/}"
STAGING_DIR="${1}"
TARGET_DIR="${2}"
shift 2
SYMBOLS_DIR="${STAGING_DIR}/usr/share/google-breakpad-symbols"
rm -rf "${SYMBOLS_DIR}"
mkdir -p "${SYMBOLS_DIR}"
error() {
fmt="${1}"; shift
printf "%s: ${fmt}" "${NAME}" "${@}" >&2
exit 1
}
for FILE in ${@}; do
f="${TARGET_DIR}${FILE}"
if [ ! -e "${f}" ]; then
error "%s: No such file or directory\n" "${FILE}"
fi
if [ -d "${f}" ]; then
error "%s: Is a directory\n" "${FILE}"
fi
if dump_syms "${f}" > "${SYMBOLS_DIR}/tmp.sym" 2>/dev/null; then
hash=$(head -n1 "${SYMBOLS_DIR}/tmp.sym" | cut -d ' ' -f 4);
filename=$(basename "${FILE}");
mkdir -p "${SYMBOLS_DIR}/${filename}/${hash}"
mv "${SYMBOLS_DIR}/tmp.sym" "${SYMBOLS_DIR}/${filename}/${hash}/${filename}.sym";
else
error "Error dumping symbols for: '%s'\n" "${FILE}"
fi
done
rm -rf "${SYMBOLS_DIR}/tmp"

View File

@@ -0,0 +1,27 @@
################################################################################
#
# google-breakpad
#
################################################################################
GOOGLE_BREAKPAD_VERSION = 1373
GOOGLE_BREAKPAD_SITE = http://google-breakpad.googlecode.com/svn/trunk
GOOGLE_BREAKPAD_SITE_METHOD = svn
GOOGLE_BREAKPAD_CONF_OPTS = --disable-processor --disable-tools
# Only a static library is installed
GOOGLE_BREAKPAD_INSTALL_TARGET = NO
GOOGLE_BREAKPAD_INSTALL_STAGING = YES
GOOGLE_BREAKPAD_LICENSE = BSD-3c
GOOGLE_BREAKPAD_LICENSE_FILES = LICENSE
ifeq ($(BR2_PACKAGE_GOOGLE_BREAKPAD),y)
GOOGLE_BREAKPAD_DEPENDENCIES = host-google-breakpad
define GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
$(EXTRA_ENV) package/google-breakpad/gen-syms.sh $(STAGING_DIR) \
$(TARGET_DIR) $(call qstrip,$(BR2_GOOGLE_BREAKPAD_INCLUDE_FILES))
endef
TARGET_FINALIZE_HOOKS += GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
endif
$(eval $(autotools-package))
$(eval $(host-autotools-package))