summaryrefslogtreecommitdiff
path: root/cross/avr-gdb
diff options
context:
space:
mode:
authormef <mef>2013-08-07 05:34:14 +0000
committermef <mef>2013-08-07 05:34:14 +0000
commit07ac13a6a5b514aa74e9e7352916f2f76bf2d0fa (patch)
tree55b5d4c861095cc44a2abeb934f1774b022e0b80 /cross/avr-gdb
parentb72bdb9ad13adf73949f27b44c79a322fb5df096 (diff)
downloadpkgsrc-07ac13a6a5b514aa74e9e7352916f2f76bf2d0fa.tar.gz
Bump GDB version from 5.3 to 7.6
(pkgsrc) patches/patch-a[abd] Removed, seems the problems no longer exist patches/patch-ac Comment added. patches/patch-bfd_bfd-in2_h Added to build with clang patches/patch-opcodes_configure Added (revert to 7.5.1, Bad substitution) (upstream) GDB 7.6 Released (2013/04/26) http://sourceware.org/ml/gdb-announce/2013/msg00000.html --------------------------- GDB 7.6 brings new targets, features and improvements, including: * New native configurations: ARM AArch64 GNU/Linux aarch64*-*-linux-gnu FreeBSD/powerpc powerpc*-*-freebsd x86_64/Cygwin x86_64-*-cygwin* Tilera TILE-Gx GNU/Linux tilegx*-*-linux-gnu * New target configurations: ARM AArch64 aarch64*-*-elf ARM AArch64 GNU/Linux aarch64*-*-linux Lynx 178 PowerPC powerpc-*-lynx*178 x86_64/Cygwin x86_64-*-cygwin* Tilera TILE-Gx GNU/Linux tilegx*-*-linux * New configure options: -enable-libmcheck/--disable-libmcheck * Support for the "mini debuginfo" section, .gnu_debugdata * The C++ ABI now defaults to the GNU v3 ABI. This has been the default for GCC since November 2000. * New command line option: -nh (disables auto-loading of ~/.gdbinit) * Various GDB/MI changes * Python scripting: ** Vectors can be created with gdb.Type.vector. ** Python's atexit.register now works in GDB. ** Types can be pretty-printed via a Python API. ** Python 3 is now supported (in addition to Python 2.4 or later) ** New class gdb.Architecture exposes GDB's internal representation of architecture in the Python API. ** New method Frame.architecture returns the gdb.Architecture object corresponding to the frame's architecture. ** New Python-based convenience functions ($_memeq, $_streq, $_strlen and $_regex) * The 'cd' command now defaults to using '~' (the home directory) if not given an argument. * New commands: ** catch signal ** maint info bfds ** python-interactive ** enable/disable type-printer * New remote packets (QTBuffer:size, Qbtrace:bts, Qbtrace:off and qXfer:btrace:read) * New options: ** set/show print type methods (on|off) ** set/show print type typedefs (on|off) ** set/show filename-display basename|relative|absolute ** set/show trace-buffer-size ** set/show remote trace-buffer-size-packet auto|on|off ** set/show debug aarch64 ** set/show debug coff-pe-read ** set/show debug mach-o ** set/show debug notification * target record: The "target record" command has been renamed to "target record-full", and a new "target record-btrace" has been added. This new target uses hardward support to record the control-flow of a process. Execution replay is not supported, but this targets allows investigating the program's recorded execution. For a complete list and more details on each item, please see the gdb/NEWS file. --------------------------- GDB 7.5 released! (2012-08-17) http://sourceware.org/ml/gdb-announce/2012/msg00004.html GDB 7.4 released! (2012-01-24) http://sourceware.org/ml/gdb-announce/2012/msg00001.html GDB 7.4 released! (2011-07-26) http://sourceware.org/ml/gdb-announce/2011/msg00001.html Other older release date: http://www.gnu.org/software/gdb/schedule/
Diffstat (limited to 'cross/avr-gdb')
-rw-r--r--cross/avr-gdb/Makefile9
-rw-r--r--cross/avr-gdb/distinfo15
-rw-r--r--cross/avr-gdb/patches/patch-aa13
-rw-r--r--cross/avr-gdb/patches/patch-ab14
-rw-r--r--cross/avr-gdb/patches/patch-ac4
-rw-r--r--cross/avr-gdb/patches/patch-ad34
-rw-r--r--cross/avr-gdb/patches/patch-bfd_bfd-in2_h27
-rw-r--r--cross/avr-gdb/patches/patch-opcodes_configure24
8 files changed, 66 insertions, 74 deletions
diff --git a/cross/avr-gdb/Makefile b/cross/avr-gdb/Makefile
index 36a66ec2130..f4ea098c0f7 100644
--- a/cross/avr-gdb/Makefile
+++ b/cross/avr-gdb/Makefile
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.17 2012/10/03 00:10:29 asau Exp $
+# $NetBSD: Makefile,v 1.18 2013/08/07 05:34:14 mef Exp $
-DISTNAME= gdb-5.3
-PKGNAME= avr-gdb-5.3
-PKGREVISION= 3
+DISTNAME= gdb-7.6
+PKGNAME= ${DISTNAME:S/^/avr-/}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= GNU gdb for Atmel AVR 8-bit RISC microcontrollers
+LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
@@ -16,6 +16,7 @@ CONFIGURE_ARGS+= --target=avr
CONFIGURE_ARGS+= --program-prefix=avr
INSTALLATION_DIRS= bin
+TEST_TARGET= check
pre-configure:
cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo
diff --git a/cross/avr-gdb/distinfo b/cross/avr-gdb/distinfo
index 93f85e7089e..9718441cde2 100644
--- a/cross/avr-gdb/distinfo
+++ b/cross/avr-gdb/distinfo
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.9 2008/06/21 20:32:08 joerg Exp $
+$NetBSD: distinfo,v 1.10 2013/08/07 05:34:14 mef Exp $
-SHA1 (gdb-5.3.tar.gz) = 24a6c9da6e89b1b82b7508f27f94098d989ff662
-RMD160 (gdb-5.3.tar.gz) = 3f88dc11115de08708c50c73b10acaf00ed25e96
-Size (gdb-5.3.tar.gz) = 14707600 bytes
-SHA1 (patch-aa) = 3b2c3c8bbacbf87d9756ef282e4a37c930fcb4af
-SHA1 (patch-ab) = 005c0ca2aea16927504e102f85638a65fd610597
-SHA1 (patch-ac) = 3ad9f172b6a860425b713401d8f2ca87c6b140fd
-SHA1 (patch-ad) = 63912ab42840a2c3e0402db97571d37b936ce0be
+SHA1 (gdb-7.6.tar.gz) = 026f4c9e1c8152a2773354551c523acd32d7f00e
+RMD160 (gdb-7.6.tar.gz) = 986e1f92130c818d9bdac548259a5c63ddeefef8
+Size (gdb-7.6.tar.gz) = 31437633 bytes
+SHA1 (patch-ac) = 2975101bbbd4a2e19fb9364b494a18e3940d9bac
+SHA1 (patch-bfd_bfd-in2_h) = 66129d5e6ecac363f9f35437b0a3ca8e3b650c8c
+SHA1 (patch-opcodes_configure) = 8c0b82710653c93320230c25ace0dbb6360cf656
diff --git a/cross/avr-gdb/patches/patch-aa b/cross/avr-gdb/patches/patch-aa
deleted file mode 100644
index 2b5c5de3d3f..00000000000
--- a/cross/avr-gdb/patches/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2005/12/19 15:23:29 joerg Exp $
-
---- gdb/target.c.orig 2005-12-19 15:16:32.000000000 +0000
-+++ gdb/target.c
-@@ -36,8 +36,6 @@
- #include <signal.h>
- #include "regcache.h"
-
--extern int errno;
--
- static void target_info (char *, int);
-
- static void cleanup_target (struct target_ops *);
diff --git a/cross/avr-gdb/patches/patch-ab b/cross/avr-gdb/patches/patch-ab
deleted file mode 100644
index d205d23fdd7..00000000000
--- a/cross/avr-gdb/patches/patch-ab
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2005/11/05 17:14:52 rillig Exp $
-
---- gdb/avr-tdep.c.orig Wed Sep 18 19:14:22 2002
-+++ gdb/avr-tdep.c Sat Nov 5 18:12:23 2005
-@@ -480,6 +480,9 @@ avr_scan_prologue (struct frame_info *fi
- prologue_end = fi->pc;
- else if (sal.end < prologue_end) /* next line begins after fn end */
- prologue_end = sal.end; /* (probably means no prologue) */
-+
-+ /* Check that we don't use a prologue larger then AVR_MAX_PROLOGUE_SIZE */
-+ prologue_end = min (prologue_end, prologue_start + AVR_MAX_PROLOGUE_SIZE);
- }
- else
- /* We're in the boondocks: allow for */
diff --git a/cross/avr-gdb/patches/patch-ac b/cross/avr-gdb/patches/patch-ac
index c449ebd606b..2aa4aee5fe3 100644
--- a/cross/avr-gdb/patches/patch-ac
+++ b/cross/avr-gdb/patches/patch-ac
@@ -1,4 +1,6 @@
-$NetBSD: patch-ac,v 1.1 2006/10/13 18:25:59 rillig Exp $
+$NetBSD: patch-ac,v 1.2 2013/08/07 05:34:14 mef Exp $
+
+ERROR: [check-portability.awk] => Found test ... == ...:
--- gdb/config/djgpp/djconfig.sh.orig 2002-02-25 17:09:45.000000000 +0100
+++ gdb/config/djgpp/djconfig.sh 2006-10-13 20:25:02.000000000 +0200
diff --git a/cross/avr-gdb/patches/patch-ad b/cross/avr-gdb/patches/patch-ad
deleted file mode 100644
index b98ea711515..00000000000
--- a/cross/avr-gdb/patches/patch-ad
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2008/06/21 20:32:08 joerg Exp $
-
---- include/obstack.h.orig 2001-03-14 02:27:43.000000000 +0000
-+++ include/obstack.h
-@@ -417,14 +417,12 @@ __extension__ \
- /* These assume that the obstack alignment is good enough for pointers or ints,
- and that the data added so far to the current object
- shares that much alignment. */
--
- # define obstack_ptr_grow(OBSTACK,datum) \
- __extension__ \
- ({ struct obstack *__o = (OBSTACK); \
- if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
- _obstack_newchunk (__o, sizeof (void *)); \
-- *((void **)__o->next_free)++ = ((void *)datum); \
-- (void) 0; })
-+ obstack_ptr_grow_fast (__o, datum); })
-
- # define obstack_int_grow(OBSTACK,datum) \
- __extension__ \
-@@ -434,7 +432,12 @@ __extension__ \
- *((int *)__o->next_free)++ = ((int)datum); \
- (void) 0; })
-
--# define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr)
-+# define obstack_ptr_grow_fast(OBSTACK,aptr) \
-+__extension__ \
-+({ struct obstack *__o1 = (OBSTACK); \
-+ *(const void **) __o1->next_free = (aptr); \
-+ __o1->next_free += sizeof (const void *); \
-+ (void) 0; })
- # define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint)
-
- # define obstack_blank(OBSTACK,length) \
diff --git a/cross/avr-gdb/patches/patch-bfd_bfd-in2_h b/cross/avr-gdb/patches/patch-bfd_bfd-in2_h
new file mode 100644
index 00000000000..2b4f99f615b
--- /dev/null
+++ b/cross/avr-gdb/patches/patch-bfd_bfd-in2_h
@@ -0,0 +1,27 @@
+$NetBSD: patch-bfd_bfd-in2_h,v 1.1 2013/08/07 05:34:14 mef Exp $
+
+Avoid following problem by clang-3.2
+----------------
+libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_bfd_elf32_avr_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -I./../intl -DBINDIR=\"/usr/pkg/bin\" -I/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -O2 -I/usr/include -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o
+opncls.c:263:5: error: expression result unused [-Werror,-Wunused-value]
+ bfd_set_cacheable (nbfd, TRUE);
+ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+./bfd.h:529:67: note: expanded from macro 'bfd_set_cacheable'
+#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
+ ^~~~
+./bfd.h:134:14: note: expanded from macro 'TRUE'
+#define TRUE 1
+ ^
+1 error generated.
+
+--- bfd/bfd-in2.h.orig 2013-02-28 06:39:18.000000000 +0900
++++ bfd/bfd-in2.h 2013-07-04 21:57:46.000000000 +0900
+@@ -526,7 +526,7 @@ extern void warn_deprecated (const char
+
+ #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
+
+-#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
++#define bfd_set_cacheable(abfd,bool) ((abfd)->cacheable = bool)
+
+ extern bfd_boolean bfd_cache_close
+ (bfd *abfd);
diff --git a/cross/avr-gdb/patches/patch-opcodes_configure b/cross/avr-gdb/patches/patch-opcodes_configure
new file mode 100644
index 00000000000..0e7faf32907
--- /dev/null
+++ b/cross/avr-gdb/patches/patch-opcodes_configure
@@ -0,0 +1,24 @@
+$NetBSD: patch-opcodes_configure,v 1.1 2013/08/07 05:34:14 mef Exp $
+
+Revert to gdb-7.5.1 to avoid following error
+(But why this is necessary is unkown yet).
+
+Configuring in ./opcodes
+....
+checking for gcc option to accept ISO C89... none needed
+checking for library containing strerror... none required
+./configure.lineno: 3236: Syntax error: Bad substitution
+gmake[1]: *** [configure-opcodes] Error 1
+gmake[1]: Leaving directory `/usr/pkgsrc/wip/gdb76/work/gdb-7.6'
+
+--- opcodes/configure.orig 2013-07-03 10:59:20.000000000 +0900
++++ opcodes/configure 2013-07-03 12:02:37.000000000 +0900
+@@ -3216,7 +3216,7 @@
+ # We currently only use the version number for the name of any shared
+ # library. For user convenience, we always use the same version
+ # number that BFD is using.
+-BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
++BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
+
+ am__api_version='1.11'
+