mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix for GDB bug #1948. Internally, this fixes a bad check in
remote_xfer_partial(), notably for AVR-GDB this makes the command "info io_registers" work again.
This commit is contained in:
parent
40c440e353
commit
d81b26e726
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136056
2 changed files with 16 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= gdb
|
||||
PORTVERSION= 6.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
|
||||
MASTER_SITE_SUBDIR= gdb/releases
|
||||
|
|
15
devel/avr-gdb/files/patch-gdb::remote.c
Normal file
15
devel/avr-gdb/files/patch-gdb::remote.c
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue