diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2002-09-10 08:52:42 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2002-09-10 08:52:42 +0000 |
commit | 9998b9f45d14d336a986e091c97bb8eb18e2397b (patch) | |
tree | 5d13bab88f107dbba1d49c3be1dfbf53e14471bc | |
parent | 705008922b9b727b3ba3e81030a3db9bbde536b7 (diff) | |
download | ports-9998b9f45d14d336a986e091c97bb8eb18e2397b.tar.gz ports-9998b9f45d14d336a986e091c97bb8eb18e2397b.zip |
Notes
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/avr-gdb/Makefile | 28 | ||||
-rw-r--r-- | devel/avr-gdb/distinfo | 1 | ||||
-rw-r--r-- | devel/avr-gdb/files/patch-aa | 22 | ||||
-rw-r--r-- | devel/avr-gdb/pkg-comment | 1 | ||||
-rw-r--r-- | devel/avr-gdb/pkg-descr | 6 | ||||
-rw-r--r-- | devel/avr-gdb/pkg-plist | 2 |
7 files changed, 61 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index b93c9166d336..f229e173e713 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -53,6 +53,7 @@ SUBDIR += avltree SUBDIR += avr-binutils SUBDIR += avr-gcc + SUBDIR += avr-gdb SUBDIR += avr-libc SUBDIR += avrprog SUBDIR += bcc diff --git a/devel/avr-gdb/Makefile b/devel/avr-gdb/Makefile new file mode 100644 index 000000000000..e54bd0a95d4f --- /dev/null +++ b/devel/avr-gdb/Makefile @@ -0,0 +1,28 @@ +# Ports collection makefile for: avr-gdb +# Date created: 3 Sep 2002 +# Whom: Joerg Wunsch <joerg@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= avr-gdb +PORTVERSION= 5.2.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEWARE} +MASTER_SITE_SUBDIR= gdb/releases +DISTNAME= gdb-${PORTVERSION} + +MAINTAINER= joerg@FreeBSD.org + +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --target=avr --program-prefix=avr + +pre-configure: + cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \ + ${PREFIX}/bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/devel/avr-gdb/distinfo b/devel/avr-gdb/distinfo new file mode 100644 index 000000000000..3e216a1dc076 --- /dev/null +++ b/devel/avr-gdb/distinfo @@ -0,0 +1 @@ +MD5 (gdb-5.2.1.tar.gz) = e9766842f1bbc6c2353de1410d8c0de0 diff --git a/devel/avr-gdb/files/patch-aa b/devel/avr-gdb/files/patch-aa new file mode 100644 index 000000000000..4534aea5ece2 --- /dev/null +++ b/devel/avr-gdb/files/patch-aa @@ -0,0 +1,22 @@ +Index: gdb/avr-tdep.c +=================================================================== +RCS file: /cvs/src/src/gdb/avr-tdep.c,v +retrieving revision 1.4 +diff -u -p -r1.4 avr-tdep.c +--- gdb/avr-tdep.c 17 Jun 2002 23:32:27 -0000 1.4 ++++ gdb/avr-tdep.c 19 Jul 2002 18:33:30 -0000 +@@ -995,7 +995,12 @@ avr_skip_prologue (CORE_ADDR pc) + { + sal = find_pc_line (func_addr, 0); + +- if (sal.line != 0 && sal.end < func_end) ++ /* troth/2002-70-19: For some very simple functions, gcc doesn't ++ generate a prologue and the sal.end ends up being the insn (2 bytes) ++ before func_end (the address of the next func). By adjusting ++ func_end, we can catch these functions and return the correct pc. */ ++ ++ if (sal.line != 0 && sal.end < (func_end-2)) + return sal.end; + } + + diff --git a/devel/avr-gdb/pkg-comment b/devel/avr-gdb/pkg-comment new file mode 100644 index 000000000000..4807bad84031 --- /dev/null +++ b/devel/avr-gdb/pkg-comment @@ -0,0 +1 @@ +GNU GDB 5.2.1 for the AVR target diff --git a/devel/avr-gdb/pkg-descr b/devel/avr-gdb/pkg-descr new file mode 100644 index 000000000000..b0048763a93d --- /dev/null +++ b/devel/avr-gdb/pkg-descr @@ -0,0 +1,6 @@ +This is the GNU Debugger GDB, configured for the AVR microcontroller +target. + +This debugger cannot really be used standalone, but is useful in +connection with either AVaRICE (http://avarice.sourceforge.net/) +or simulavr (http://www.freesoftware.fsf.org/simulavr/). diff --git a/devel/avr-gdb/pkg-plist b/devel/avr-gdb/pkg-plist new file mode 100644 index 000000000000..2f8e567bd6c6 --- /dev/null +++ b/devel/avr-gdb/pkg-plist @@ -0,0 +1,2 @@ +@comment $FreeBSD$ +bin/avr-gdb |