From daec2688835335e1ea6a6acfefdb286250573784 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 21 Oct 2013 14:59:32 +0200 Subject: disable m68k builds --- package/gdb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/gdb') diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 3670f731e..62bf91c38 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -10,7 +10,7 @@ PKG_DEPENDS:= libthread-db libncurses libiconv libexpat libgcc PKG_BUILDDEP:= ncurses readline libiconv expat PKG_NOPARALLEL:= 1 -PKG_ARCH_DEPENDS:= !cris !avr32 +PKG_ARCH_DEPENDS:= !cris !avr32 !m68k include ${TOPDIR}/mk/package.mk -- cgit v1.2.3 From d279b5d1fe744cac44da7cd1b51f9ba6a2cc4647 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 22 Oct 2013 19:29:20 +0200 Subject: fix libmix packages, while checking all packages make some style cleanup --- package/gdb/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/gdb') diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 62bf91c38..1587c2c58 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -4,6 +4,7 @@ include ${TOPDIR}/rules.mk include ${TOPDIR}/toolchain/gdb/Makefile.inc +PKG_NAME:= gdb PKG_DESCR:= GNU debugger PKG_SECTION:= debug PKG_DEPENDS:= libthread-db libncurses libiconv libexpat libgcc @@ -33,7 +34,7 @@ XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}' # disable honour cflags stuff XAKE_FLAGS+= GCC_HONOUR_COPTS:=s -post-install: +gdb-install: ${INSTALL_DIR} ${IDIR_GDB}/usr/bin ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/ # shipped libbfd conflicts with system wide one -- cgit v1.2.3 From 8b158037825699c4337eb0cb2911a289a47b25d5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 26 Oct 2013 23:38:30 +0200 Subject: fix x86_64 build with musl, from sabotage --- package/gdb/patches/patch-gdb_amd64-linux-nat_c | 12 +++++-- package/gdb/src/gdb/debugreg.h | 48 +++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 package/gdb/src/gdb/debugreg.h (limited to 'package/gdb') diff --git a/package/gdb/patches/patch-gdb_amd64-linux-nat_c b/package/gdb/patches/patch-gdb_amd64-linux-nat_c index ac612d711..c50f1adf1 100644 --- a/package/gdb/patches/patch-gdb_amd64-linux-nat_c +++ b/package/gdb/patches/patch-gdb_amd64-linux-nat_c @@ -1,6 +1,6 @@ --- gdb-7.6.orig/gdb/amd64-linux-nat.c 2013-03-11 09:25:57.000000000 +0100 -+++ gdb-7.6/gdb/amd64-linux-nat.c 2013-09-04 13:29:05.000000000 +0200 -@@ -25,8 +25,6 @@ ++++ gdb-7.6/gdb/amd64-linux-nat.c 2013-10-26 22:30:11.000000000 +0200 +@@ -25,15 +25,13 @@ #include "regset.h" #include "linux-nat.h" #include "amd64-linux-tdep.h" @@ -9,6 +9,14 @@ #include "gdb_assert.h" #include "gdb_string.h" + #include "elf/common.h" + #include + #include +-#include ++#include "debugreg.h" + #include + #include + #include @@ -1121,47 +1119,6 @@ amd64_linux_read_description (struct tar } } diff --git a/package/gdb/src/gdb/debugreg.h b/package/gdb/src/gdb/debugreg.h new file mode 100644 index 000000000..e4883c804 --- /dev/null +++ b/package/gdb/src/gdb/debugreg.h @@ -0,0 +1,48 @@ +#ifndef SYS_DEBUGREG_H +#define SYS_DEBUGREG_H + +#include + +#define DR_FIRSTADDR 0 +#define DR_LASTADDR 3 + +#define DR_STATUS 6 +#define DR_CONTROL 7 + +#define DR_TRAP0 (0x1) +#define DR_TRAP1 (0x2) +#define DR_TRAP2 (0x4) +#define DR_TRAP3 (0x8) + +#define DR_STEP (0x4000) +#define DR_SWITCH (0x8000) + +#define DR_CONTROL_SHIFT 16 +#define DR_CONTROL_SIZE 4 + +#define DR_RW_EXECUTE (0x0) +#define DR_RW_WRITE (0x1) +#define DR_RW_READ (0x3) + +#define DR_LEN_1 (0x0) +#define DR_LEN_2 (0x4) +#define DR_LEN_4 (0xC) +#define DR_LEN_8 (0x8) + +#define DR_LOCAL_ENABLE_SHIFT 0 +#define DR_GLOBAL_ENABLE_SHIFT 1 +#define DR_ENABLE_SIZE 2 + +#define DR_LOCAL_ENABLE_MASK (0x55) +#define DR_GLOBAL_ENABLE_MASK (0xAA) + + +#if SIZE_MAX > 4294967295 +# define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL) +#else +# define DR_CONTROL_RESERVED (0x00FC00U) +#endif +#define DR_LOCAL_SLOWDOWN (0x100) +#define DR_GLOBAL_SLOWDOWN (0x200) + +#endif -- cgit v1.2.3 From dbb81c6054d70e3ab797f7830837402a97e93db1 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 28 Oct 2013 18:42:50 +0100 Subject: disable auto-load-safe-path, to inhibit errors when /lib32 is used on lemote --- package/gdb/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'package/gdb') diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 1587c2c58..686ea3497 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -28,6 +28,7 @@ CONFIGURE_ARGS+= --without-uiout --enable-gdbmi \ --disable-tui --disable-gdbtk --without-x \ --without-included-gettext --disable-sim \ --with-curses --disable-werror \ + --without-auto-load-safe-path \ --disable-gdbserver \ --without-python XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}' -- cgit v1.2.3 From fbe47cba997e4f2f2dbaa6af0583dbec2e5d130c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 2 Nov 2013 12:03:09 +0100 Subject: remove dependencies to libiconv,pkg-config and file. use pkgconf and libiconv-tiny instead. fixes glib compile on systems without libiconv/ native iconv implementation --- package/gdb/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/gdb') diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 686ea3497..0c8cb1906 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -7,8 +7,8 @@ include ${TOPDIR}/toolchain/gdb/Makefile.inc PKG_NAME:= gdb PKG_DESCR:= GNU debugger PKG_SECTION:= debug -PKG_DEPENDS:= libthread-db libncurses libiconv libexpat libgcc -PKG_BUILDDEP:= ncurses readline libiconv expat +PKG_DEPENDS:= libthread-db libncurses libexpat libgcc +PKG_BUILDDEP:= ncurses readline libiconv-tiny expat PKG_NOPARALLEL:= 1 PKG_ARCH_DEPENDS:= !cris !avr32 !m68k -- cgit v1.2.3 From b59da8fc7b46ee62cbe9eb97a05c8a0f1ab75593 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 7 Nov 2013 16:55:09 +0100 Subject: update valgrind to latest upstream version, strlen is not a function in ld.so in latest glibc/eglibc setups, just remove the redirect for now. enable automatic building of debug subpackages. update TODO --- package/gdb/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/gdb') diff --git a/package/gdb/Makefile b/package/gdb/Makefile index 0c8cb1906..6e5acdc32 100644 --- a/package/gdb/Makefile +++ b/package/gdb/Makefile @@ -7,8 +7,8 @@ include ${TOPDIR}/toolchain/gdb/Makefile.inc PKG_NAME:= gdb PKG_DESCR:= GNU debugger PKG_SECTION:= debug -PKG_DEPENDS:= libthread-db libncurses libexpat libgcc -PKG_BUILDDEP:= ncurses readline libiconv-tiny expat +PKG_DEPENDS:= libthread-db libncurses libexpat libgcc zlib +PKG_BUILDDEP:= ncurses readline libiconv-tiny expat zlib PKG_NOPARALLEL:= 1 PKG_ARCH_DEPENDS:= !cris !avr32 !m68k -- cgit v1.2.3