gdb-avr-7.7/0000775000000000000000000000000012366700572007611 5ustar gdb-avr-7.7/debian/0000775000000000000000000000000012655636217011040 5ustar gdb-avr-7.7/debian/rules0000775000000000000000000000423012366677207012122 0ustar #!/usr/bin/make -f # Derived from sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. TARGET :=avr PACKAGE :=gdb-avr BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W gdb-source) DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) CONFARGS = \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir='\$${prefix}/share/man' \ --infodir='\$${prefix}/share/info' \ --target=$(TARGET)\ --with-expat \ --disable-texinfo \ $(shell dpkg-buildflags --export=configure) # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 unpack: unpack-stamp unpack-stamp: tar xjf /usr/src/gdb.tar.bz2 mv gdb* src mkdir build touch unpack-stamp patch: patch-stamp patch-stamp: unpack-stamp #cd src && patch -p1 < ../debian/bug_746849.patch touch $@ configure: configure-stamp configure-stamp: patch-stamp dh_testdir cd build && env CC="gcc" CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter" ../src/configure $(CONFARGS) cd build && make configure-gdb configure-bfd sed -i -s s/info:.*/info:/ build/*/doc/Makefile touch configure-stamp build: configure-stamp build-stamp build-stamp: dh_testdir cd build && $(MAKE) touch build-stamp build-indep: build build-arch: build clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp unpack-stamp patch-stamp rm -rf src build `ls -d gdb* | grep -v tar` dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # install the package into debian/tmp. cd build && $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr # Build architecture-independent files. binary-indep: build install # Build architecture-dependent files. binary-arch: build install dh_testdir dh_testroot dh_movefiles dh_installdocs -n dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -- -VBuilt-Using="$(BUILT_USING)" dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure gdb-avr-7.7/debian/bug_746849.patch0000664000000000000000000001377412343070074013502 0ustar diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f3acbca..bf05401 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,15 @@ +2014-01-29 Nick Clifton + + * bfd-in.h (bfd_set_section_vma): Delete. + (bfd_set_section_alignment): Delete. + (bfd_set_section_userdata): Delete. + (bfd_set_cacheable): Delete. + * bfd.c (bfd_set_cacheable): New static inline function. + * section.c (bfd_set_section_userdata): Likewise. + (bfd_set_section_vma): Likewise. + (bfd_set_section_alignment): Likewise. + * bfd-in2.h: Regenerate. + 2013-12-06 Maciej W. Rozycki Paul Brook diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 3afd71b..c7c5a7d 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -292,9 +292,6 @@ typedef struct bfd_section *sec_ptr; #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0) -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ @@ -517,8 +514,6 @@ extern void warn_deprecated (const char *, const char *, int, const char *); #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char) -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE) - extern bfd_boolean bfd_cache_close (bfd *abfd); /* NB: This declaration should match the autogenerated one in libbfd.h. */ diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 71996db..b5aeb40 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -299,9 +299,6 @@ typedef struct bfd_section *sec_ptr; #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0) -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE) /* Find the address one past the end of SEC. */ #define bfd_get_section_limit(bfd, sec) \ (((bfd)->direction != write_direction && (sec)->rawsize != 0 \ @@ -524,8 +521,6 @@ extern void warn_deprecated (const char *, const char *, int, const char *); #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char) -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE) - extern bfd_boolean bfd_cache_close (bfd *abfd); /* NB: This declaration should match the autogenerated one in libbfd.h. */ @@ -1029,7 +1024,7 @@ bfd *bfd_openr (const char *filename, const char *target); bfd *bfd_fdopenr (const char *filename, const char *target, int fd); -bfd *bfd_openstreamr (const char *, const char *, void *); +bfd *bfd_openstreamr (const char * filename, const char * target, void * stream); bfd *bfd_openr_iovec (const char *filename, const char *target, void *(*open_func) (struct bfd *nbfd, @@ -1596,6 +1591,32 @@ struct relax_table { int size; }; +/* Note: the following are provided as inline functions rather than macros + because not all callers use the return value. A macro implementation + would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some + compilers will complain about comma expressions that have no effect. */ +static inline bfd_boolean +bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val) +{ + ptr->userdata = val; + return TRUE; +} + +static inline bfd_boolean +bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val) +{ + ptr->vma = ptr->lma = val; + ptr->user_set_vma = TRUE; + return TRUE; +} + +static inline bfd_boolean +bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val) +{ + ptr->alignment_power = val; + return TRUE; +} + /* These sections are global, and are managed by BFD. The application and target back end are not permitted to change the values in these sections. */ @@ -6415,6 +6436,14 @@ struct bfd unsigned int selective_search : 1; }; +/* See note beside bfd_set_section_userdata. */ +static inline bfd_boolean +bfd_set_cacheable (bfd * abfd, bfd_boolean val) +{ + abfd->cacheable = val; + return TRUE; +} + typedef enum bfd_error { bfd_error_no_error = 0, diff --git a/bfd/bfd.c b/bfd/bfd.c index 8d0580c..2d174f3 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -311,6 +311,14 @@ CODE_FRAGMENT . unsigned int selective_search : 1; .}; . +.{* See note beside bfd_set_section_userdata. *} +.static inline bfd_boolean +.bfd_set_cacheable (bfd * abfd, bfd_boolean val) +.{ +. abfd->cacheable = val; +. return TRUE; +.} +. */ #include "sysdep.h" diff --git a/bfd/section.c b/bfd/section.c index fb19d8c..a661228 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -542,6 +542,32 @@ CODE_FRAGMENT . int size; .}; . +.{* Note: the following are provided as inline functions rather than macros +. because not all callers use the return value. A macro implementation +. would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some +. compilers will complain about comma expressions that have no effect. *} +.static inline bfd_boolean +.bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val) +.{ +. ptr->userdata = val; +. return TRUE; +.} +. +.static inline bfd_boolean +.bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val) +.{ +. ptr->vma = ptr->lma = val; +. ptr->user_set_vma = TRUE; +. return TRUE; +.} +. +.static inline bfd_boolean +.bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val) +.{ +. ptr->alignment_power = val; +. return TRUE; +.} +. .{* These sections are global, and are managed by BFD. The application . and target back end are not permitted to change the values in . these sections. *} gdb-avr-7.7/debian/gdb-avr.files0000664000000000000000000000003111606364075013373 0ustar usr/bin/ usr/share/man/ gdb-avr-7.7/debian/copyright0000664000000000000000000000077711606364075013001 0ustar This is a package of the GNU debugger compiled for cross development for the avr architecture. This package uses the sourcecode from the toolchain-source-gdb package. Copyright: Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. gdb-avr-7.7/debian/compat0000664000000000000000000000000212343070760012223 0ustar 5 gdb-avr-7.7/debian/control0000664000000000000000000000177112406102274012432 0ustar Source: gdb-avr Section: devel Priority: extra Maintainer: Hakan Ardo Standards-Version: 3.9.5 Build-Depends: tar (>= 1.13.18), bzip2, autoconf (>= 2.13), libtool, texinfo (>= 4.6), texlive (>= 2007-11), libncurses5-dev, libreadline-dev, bison, gettext, debhelper (>= 4.1.46), dejagnu, flex, gdb-source (>= 7.7), dpkg (>= 1.16.2), libexpat1-dev, mig [hurd-any] Package: gdb-avr Section: devel Architecture: any Priority: extra Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: gdb-doc Built-Using: ${Built-Using} Description: GNU Debugger for avr This package has been compiled to target the avr architecture. GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, it works for C, C++, Fortran Modula 2 and Java programs. A must-have for any serious programmer. This package is primarily for avr developers and cross-compilers and is not needed by normal users or developers. gdb-avr-7.7/debian/changelog0000644000000000000000000000610112655636217012706 0ustar gdb-avr (7.7-2build1) xenial; urgency=medium * No-change rebuild for ncurses6 transition. -- Matthias Klose Sun, 07 Feb 2016 12:46:07 +0000 gdb-avr (7.7-2) unstable; urgency=medium * Added Build-Depends on mig [hurd-any] (closes: #761331) -- Hakan Ardo Tue, 16 Sep 2014 20:44:11 +0200 gdb-avr (7.7-1) unstable; urgency=medium * New upstream release (closes: #753244) -- Hakan Ardo Fri, 01 Aug 2014 13:54:22 +0200 gdb-avr (7.6.2-1) unstable; urgency=medium * New upstream release * Applied upstream patch fixing gcc 4.9 compilation errors (closes: #746849) * Use buildflags from dpkg-buildflags * Added ${misc:Depends} dependency * Increased debhelper compat version to 5 * Added build-indep and build-arch targets -- Hakan Ardo Mon, 02 Jun 2014 14:53:03 +0200 gdb-avr (7.6-1) unstable; urgency=low * New upstream release (closes: #551808) * Enable xml support (closes: #734320) -- Hakan Ardo Tue, 14 Jan 2014 15:08:47 +0100 gdb-avr (7.4-1) unstable; urgency=low [ Hakan Ardo ] * New upstream release [ Ansgar Burchardt ] * Add Built-Using field for gdb-source. (closes: #696397) -- Hakan Ardo Tue, 25 Dec 2012 20:30:55 +0100 gdb-avr (7.2-1) unstable; urgency=low * New upstream release (closes: #580513) * Added -Wno-error=unused-but-set-variable and -Wno-error=unused-but- set-parameter compiletime flags (closes: #625342) -- Hakan Ardo Sun, 10 Jul 2011 20:04:08 +0200 gdb-avr (6.4.90.dfsg-3) unstable; urgency=low * No longer build-depends on gobjc (closes: #481913) * Build-depend on libreadline5-dev replaced with libreadline-dev * Build-depend on tetex-bin replaced by texlive * Fixed two build-depends-on-1-revision lintians -- Hakan Ardo Sun, 04 Oct 2009 10:43:54 +0200 gdb-avr (6.4.90.dfsg-2.1) unstable; urgency=low * Non-maintainer upload from the Zurich BSP * Fix FTBFS, patch taken from gdb-m68hc1x package (Closes: #453206) -- Tobias Klauser Sat, 12 Jan 2008 12:36:13 +0100 gdb-avr (6.4.90.dfsg-1) unstable; urgency=low * Removed GFDL-files from src pkg (closes: #392961) -- Hakan Ardo Wed, 1 Nov 2006 17:58:38 +0100 gdb-avr (6.4-2) unstable; urgency=low * Added suggest gdb-doc (closes: #392961) -- Hakan Ardo Sun, 29 Oct 2006 17:32:39 +0100 gdb-avr (6.4-1) unstable; urgency=low * New upstream release -- Hakan Ardo Sun, 19 Feb 2006 12:11:22 +0100 gdb-avr (6.3-2.1) unstable; urgency=high * Non-maintainer upload. * Update readline build-dep to libreadline5-dev (Closes: #350644). -- Luk Claes Wed, 15 Feb 2006 12:37:50 +0100 gdb-avr (6.3-2) unstable; urgency=low * Added build-depends on felx -- Hakan Ardo Sat, 19 Mar 2005 17:12:29 +0100 gdb-avr (6.3-1) unstable; urgency=low * Initial Release -- Hakan Ardo Sat, 19 Mar 2005 13:21:54 +0100 Local variables: mode: debian-changelog End: