This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog xtensa-tdep.c
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Fri, 19 Apr 2013 15:23:52 +0000
- Subject: src/gdb ChangeLog xtensa-tdep.c
CVSROOT: /cvs/src
Module name: src
Changes by: palves@sourceware.org 2013-04-19 15:23:52
Modified files:
gdb : ChangeLog xtensa-tdep.c
Log message:
-Wpointer-sign: xtensa-tdep.c.
../../src/gdb/xtensa-tdep.c:2914:4: error: pointer targets in passing argument 7 of âxtensa_operand_get_fieldâ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/xtensa-tdep.c:53:0:
../../src/gdb/../include/xtensa-isa.h:487:1: note: expected âunsigned int *â but argument is of type âint *â
../../src/gdb/xtensa-tdep.c:2916:4: error: pointer targets in passing argument 4 of âxtensa_operand_decodeâ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/xtensa-tdep.c:53:0:
../../src/gdb/../include/xtensa-isa.h:507:1: note: expected âunsigned int *â but argument is of type âint *â
../../src/gdb/xtensa-tdep.c:2918:4: error: pointer targets in passing argument 7 of âxtensa_operand_get_fieldâ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/xtensa-tdep.c:53:0:
../../src/gdb/../include/xtensa-isa.h:487:1: note: expected âunsigned int *â but argument is of type âint *â
../../src/gdb/xtensa-tdep.c:2920:4: error: pointer targets in passing argument 4 of âxtensa_operand_decodeâ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/xtensa-tdep.c:53:0:
../../src/gdb/../include/xtensa-isa.h:507:1: note: expected âunsigned int *â but argument is of type âint *â
../../src/gdb/xtensa-tdep.c:2922:4: error: pointer targets in passing argument 7 of âxtensa_operand_get_fieldâ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/xtensa-tdep.c:53:0:
../../src/gdb/../include/xtensa-isa.h:487:1: note: expected âunsigned int *â but argument is of type âint *â
../../src/gdb/xtensa-tdep.c:2924:4: error: pointer targets in passing argument 4 of âxtensa_operand_decodeâ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/xtensa-tdep.c:53:0:
../../src/gdb/../include/xtensa-isa.h:507:1: note: expected âunsigned int *â but argument is of type âint *â
Those bfd functions that decode instructions output uint32_t values.
Hence this fix:
2013-04-19 Pedro Alves <palves@redhat.com>
* xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
parameters 'at', 'as' and 'offset' to uint32_t.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15441&r2=1.15442
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/xtensa-tdep.c.diff?cvsroot=src&r1=1.64&r2=1.65