summaryrefslogtreecommitdiff
path: root/devel/avr-gdb/files/patch-gdb::remote.c
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2010-01-22 19:32:28 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2010-01-22 19:32:28 +0000
commit40938b4eac21f2dd5d54355f8951d7dabb89c87f (patch)
tree78556b849982194a821346d0b591051d3c2bde8c /devel/avr-gdb/files/patch-gdb::remote.c
parentFix utmpx fallout (diff)
Upgrade to GDB version 6.8 (finally).
Notes
Notes: svn path=/head/; revision=248362
Diffstat (limited to 'devel/avr-gdb/files/patch-gdb::remote.c')
-rw-r--r--devel/avr-gdb/files/patch-gdb::remote.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/devel/avr-gdb/files/patch-gdb::remote.c b/devel/avr-gdb/files/patch-gdb::remote.c
index 9c94e5b952d6..9c90549552f1 100644
--- a/devel/avr-gdb/files/patch-gdb::remote.c
+++ b/devel/avr-gdb/files/patch-gdb::remote.c
@@ -1,15 +1,14 @@
---- gdb/remote.c.orig Sat Nov 6 00:38:25 2004
-+++ gdb/remote.c Tue May 24 21:34:59 2005
-@@ -4895,8 +4895,10 @@
- return -1;
+--- gdb/remote.c~ 2008-02-25 10:59:06.000000000 +0100
++++ gdb/remote.c 2010-01-19 11:30:19.000000000 +0100
+@@ -6102,8 +6102,9 @@
+ [PACKET_qXfer_spu_write]);
}
-- /* 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;
+- /* Only handle flash writes. */
+- if (writebuf != NULL)
++ /* Only handle flash writes. Zero OFFSET and LENGTH is just a size
++ * query only, so proceed anyway. */
++ if (writebuf != NULL && !(offset == 0 && len == 0))
+ {
+ LONGEST xfered;
- /* Map pre-existing objects onto letters. DO NOT do this for new