This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog stap-probe.c
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 7 Mar 2013 18:45:51 -0000
- Subject: src/gdb ChangeLog stap-probe.c
CVSROOT: /cvs/src
Module name: src
Changes by: palves@sourceware.org 2013-03-07 18:45:51
Modified files:
gdb : ChangeLog stap-probe.c
Log message:
stap-probe.c: fix -Wpointer-sign
$ make WERROR_CFLAGS="-Wpointer-sign -Werror" stap-probe.o 2>&1 1>/dev/null
../../src/gdb/stap-probe.c: In function â??handle_stap_probeâ??:
../../src/gdb/stap-probe.c:1306:19: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
cc1: all warnings being treated as errors
make: *** [stap-probe.o] Error 1
provider is a string, so it's rightfully a char*. 'data' holds raw
bytes (bfd_byte), so a cast is the right thing to do.
gdb/
2013-03-07 Pedro Alves <palves@redhat.com>
* stap-probe.c (handle_stap_probe): Add cast to char*.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15217&r2=1.15218
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/stap-probe.c.diff?cvsroot=src&r1=1.8&r2=1.9