diff options
author | Pedro Alves <palves@redhat.com> | 2013-03-08 15:22:44 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-03-08 15:22:44 +0000 |
commit | 6221be90ef8447ecc643cc980e7b184f379fea9a (patch) | |
tree | 6e16830888a783d4c491369ee4b8a53caf2a3354 /gdb/python/py-cmd.c | |
parent | f6f899bfc53faa15406ba58f491760ad07563c47 (diff) | |
download | gdb-6221be90ef8447ecc643cc980e7b184f379fea9a.zip gdb-6221be90ef8447ecc643cc980e7b184f379fea9a.tar.gz gdb-6221be90ef8447ecc643cc980e7b184f379fea9a.tar.bz2 |
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 *'.
Diffstat (limited to 'gdb/python/py-cmd.c')
0 files changed, 0 insertions, 0 deletions