diff options
author | joerg <joerg@FreeBSD.org> | 2002-09-10 08:52:42 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2002-09-10 08:52:42 +0000 |
commit | d7a6b83dfc72123dbdf7c3f8701d27877c43259e (patch) | |
tree | d6827d9166cf0732ba4101c7fdb64f630b759854 /devel/avr-gdb | |
parent | 98ce5d15faf1590f86ed2d5233598cf8f540e211 (diff) | |
download | FreeBSD-ports-d7a6b83dfc72123dbdf7c3f8701d27877c43259e.zip FreeBSD-ports-d7a6b83dfc72123dbdf7c3f8701d27877c43259e.tar.gz |
Complete the support for the AVR microcontroller toolchain: a port of
GDB to the AVR.
Diffstat (limited to 'devel/avr-gdb')
-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 |
6 files changed, 60 insertions, 0 deletions
diff --git a/devel/avr-gdb/Makefile b/devel/avr-gdb/Makefile new file mode 100644 index 0000000..e54bd0a --- /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 0000000..3e216a1 --- /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 0000000..4534aea --- /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 0000000..4807bad --- /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 0000000..b004876 --- /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 0000000..2f8e567 --- /dev/null +++ b/devel/avr-gdb/pkg-plist @@ -0,0 +1,2 @@ +@comment $FreeBSD$ +bin/avr-gdb |