diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-08-14 12:51:52 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-08-14 12:51:52 +0200 |
commit | a7ced5ec9a36f2142d404053dc384ae3af1fe047 (patch) | |
tree | 0fbc32d5e91d00450a65d146c328966877b56e65 /package/gdb | |
parent | e2692cea04fe08014537bbecf5fb52033cb463e2 (diff) | |
parent | 47ba3ba77f0a108450c5536daf77271125953966 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/gdb')
-rw-r--r-- | package/gdb/Makefile | 9 | ||||
-rw-r--r-- | package/gdb/patches/patch-gdb_common_gdb_thread_db_h | 35 | ||||
-rw-r--r-- | package/gdb/patches/patch-gdb_common_linux-ptrace_h | 10 | ||||
-rw-r--r-- | package/gdb/patches/patch-gdb_linux-nat_c | 26 |
4 files changed, 76 insertions, 4 deletions
diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 5bc8d6de2..85a40b195 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -16,16 +16,17 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -#ifeq ($(ADK_STATIC),y) -#TARGET_CFLAGS+= -static -#endif +ifeq ($(ADK_STATIC),y) +TARGET_CFLAGS+= -static +endif TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS)) TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC CONFIGURE_ARGS+= --without-uiout --enable-gdbmi \ --disable-tui --disable-gdbtk --without-x \ --without-included-gettext --disable-sim \ - --enable-threads --with-curses --disable-werror \ + --with-curses --disable-werror \ + --disable-gdbserver \ --enable-static --without-python XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}' # disable honour cflags stuff diff --git a/package/gdb/patches/patch-gdb_common_gdb_thread_db_h b/package/gdb/patches/patch-gdb_common_gdb_thread_db_h new file mode 100644 index 000000000..12ab8ebaf --- /dev/null +++ b/package/gdb/patches/patch-gdb_common_gdb_thread_db_h @@ -0,0 +1,35 @@ +--- gdb-7.6.orig/gdb/common/gdb_thread_db.h 2013-01-01 07:32:54.000000000 +0100 ++++ gdb-7.6/gdb/common/gdb_thread_db.h 2013-08-13 16:37:40.000000000 +0200 +@@ -1,17 +1,6 @@ + #ifdef HAVE_THREAD_DB_H + #include <thread_db.h> + +-#ifndef LIBTHREAD_DB_SO +-#define LIBTHREAD_DB_SO "libthread_db.so.1" +-#endif +- +-#ifndef LIBTHREAD_DB_SEARCH_PATH +-/* $sdir appears before $pdir for some minimal security protection: +- we trust the system libthread_db.so a bit more than some random +- libthread_db associated with whatever libpthread the app is using. */ +-#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir" +-#endif +- + #else + + /* Copyright (C) 1999-2013 Free Software Foundation, Inc. +@@ -453,3 +442,14 @@ extern td_err_e td_thr_dbresume (const t + #endif /* thread_db.h */ + + #endif /* HAVE_THREAD_DB_H */ ++ ++#ifndef LIBTHREAD_DB_SO ++#define LIBTHREAD_DB_SO "libthread_db.so.1" ++#endif ++ ++#ifndef LIBTHREAD_DB_SEARCH_PATH ++/* $sdir appears before $pdir for some minimal security protection: ++ we trust the system libthread_db.so a bit more than some random ++ libthread_db associated with whatever libpthread the app is using. */ ++#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir" ++#endif diff --git a/package/gdb/patches/patch-gdb_common_linux-ptrace_h b/package/gdb/patches/patch-gdb_common_linux-ptrace_h new file mode 100644 index 000000000..cc6556d0a --- /dev/null +++ b/package/gdb/patches/patch-gdb_common_linux-ptrace_h @@ -0,0 +1,10 @@ +--- gdb-7.6.orig/gdb/common/linux-ptrace.h 2013-01-01 07:32:54.000000000 +0100 ++++ gdb-7.6/gdb/common/linux-ptrace.h 2013-08-13 17:10:13.000000000 +0200 +@@ -20,6 +20,7 @@ + + struct buffer; + ++#include <unistd.h> + #include <sys/ptrace.h> + + #ifndef PTRACE_GETSIGINFO diff --git a/package/gdb/patches/patch-gdb_linux-nat_c b/package/gdb/patches/patch-gdb_linux-nat_c new file mode 100644 index 000000000..50ba9bf6c --- /dev/null +++ b/package/gdb/patches/patch-gdb_linux-nat_c @@ -0,0 +1,26 @@ +--- gdb-7.6.orig/gdb/linux-nat.c 2013-02-13 15:59:49.000000000 +0100 ++++ gdb-7.6/gdb/linux-nat.c 2013-08-13 17:01:09.000000000 +0200 +@@ -79,6 +79,14 @@ + # endif + #endif /* HAVE_PERSONALITY */ + ++#ifndef __SIGRTMIN ++#define __SIGRTMIN SIGRTMIN ++#endif ++ ++#ifndef W_STOPCODE ++#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) ++#endif ++ + /* This comment documents high-level logic of this file. + + Waiting for events in sync mode +@@ -2379,7 +2387,7 @@ linux_handle_extended_wait (struct lwp_i + status = 0; + } + +- if (non_stop) ++ if (1) + { + /* Add the new thread to GDB's lists as soon as possible + so that: |