aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-03-07 18:29:05 +0000
committerPedro Alves <palves@redhat.com>2013-03-07 18:29:05 +0000
commit8ac2c12b843ac2f5956bab975a1f855b70fe4fe0 (patch)
tree45fc7560588664407d310d823d7f5d2fd3c4efe2 /gdb/c-lang.c
parent99f0a309a9079c8fbc53e1e115a19193f60bf2df (diff)
downloadgdb-8ac2c12b843ac2f5956bab975a1f855b70fe4fe0.zip
gdb-8ac2c12b843ac2f5956bab975a1f855b70fe4fe0.tar.gz
gdb-8ac2c12b843ac2f5956bab975a1f855b70fe4fe0.tar.bz2
linux-record.c:record_linux_system_call: fix -Wpointer-sign
$ make WERROR_CFLAGS="-Wpointer-sign -Werror" linux-record.o 2>&1 1>/dev/null ... ../../src/gdb/linux-record.c: In function ‘record_linux_system_call’: ../../src/gdb/linux-record.c:1152:9: error: pointer targets in passing argument 3 of ‘regcache_raw_read_signed’ differ in signedness [-Werror=pointer-sign] In file included from ../../src/gdb/linux-record.c:23:0: ../../src/gdb/regcache.h:76:3: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’ ../../src/gdb/linux-record.c:1186:13: error: pointer targets in passing argument 3 of ‘regcache_raw_read_signed’ differ in signedness [-Werror=pointer-sign] In file included from ../../src/gdb/linux-record.c:23:0: ../../src/gdb/regcache.h:76:3: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’ I believe the read_signed calls are correct, and the variables are in the wrong. Tested on x86_64 Fedora 17. gdb/ 2013-03-07 Pedro Alves <palves@redhat.com> * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv, RECORD_MSGRCV>: Pass a signed variable to regcache_raw_read_signed, instead of an unsigned one.
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions