aboutsummaryrefslogtreecommitdiff
path: root/devel/avr-gdb
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2005-05-24 20:02:50 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2005-05-24 20:02:50 +0000
commitd81b26e726dde262fb7854d1a58e4efe60037422 (patch)
tree37bbb00720a5a4356816e1158ca13bbbb408a897 /devel/avr-gdb
parent40c440e353a62cb45b63616009c526c19cbfadcd (diff)
downloadports-d81b26e726dde262fb7854d1a58e4efe60037422.tar.gz
ports-d81b26e726dde262fb7854d1a58e4efe60037422.zip
Notes
Diffstat (limited to 'devel/avr-gdb')
-rw-r--r--devel/avr-gdb/Makefile1
-rw-r--r--devel/avr-gdb/files/patch-gdb::remote.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/devel/avr-gdb/Makefile b/devel/avr-gdb/Makefile
index 0b4e7ee4f732..acb51222493d 100644
--- a/devel/avr-gdb/Makefile
+++ b/devel/avr-gdb/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gdb
PORTVERSION= 6.3
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= gdb/releases
diff --git a/devel/avr-gdb/files/patch-gdb::remote.c b/devel/avr-gdb/files/patch-gdb::remote.c
new file mode 100644
index 000000000000..b801011ebbde
--- /dev/null
+++ b/devel/avr-gdb/files/patch-gdb::remote.c
@@ -0,0 +1,15 @@
+--- remote.c.orig Sat Nov 6 00:38:25 2004
++++ remote.c Tue May 24 21:34:59 2005
+@@ -4895,8 +4895,10 @@
+ return -1;
+ }
+
+- /* Only handle reads. */
+- if (writebuf != NULL || readbuf == NULL)
++ /* Only handle reads. Zero OFFSET and LENGTH is just a size
++ * query only, so allow it anyway. */
++ if ((writebuf != NULL || readbuf == NULL) &&
++ !(offset == 0 && len == 0))
+ return -1;
+
+ /* Map pre-existing objects onto letters. DO NOT do this for new