This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog findcmd.c
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 8 Mar 2013 15:22:44 -0000
- Subject: src/gdb ChangeLog findcmd.c
CVSROOT: /cvs/src
Module name: src
Changes by: palves@sourceware.org 2013-03-08 15:22:44
Modified files:
gdb : ChangeLog findcmd.c
Log message:
find command, fix -Wpoint-sign
From: Pedro Alves <palves@redhat.com>
The find command's patter/buffer that is passed to the target is a
binary blob, not a string.
$ make WERROR_CFLAGS="-Wpointer-sign -Werror" findcmd.o -k 2>&1 1>/dev/null
../../src/gdb/findcmd.c: In function â??find_commandâ??:
../../src/gdb/findcmd.c:278:6: error: pointer targets in passing argument 3 of â??target_search_memoryâ?? differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/findcmd.c:26:0:
../../src/gdb/target.h:1582:12: note: expected â??const gdb_byte *â?? but argument is of type â??char *â??
gdb/
2013-03-08 Pedro Alves <palves@redhat.com>
* findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
(parse_find_args, find_command): Change type of pattern buffer
locals to 'gdb_byte *'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15228&r2=1.15229
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/findcmd.c.diff?cvsroot=src&r1=1.22&r2=1.23