src/gdb ChangeLog xtensa-tdep.c

palves@sourceware.org palves@sourceware.org
Fri Apr 19 15:23:00 GMT 2013


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



More information about the Gdb-cvs mailing list