This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog mips-tdep.c
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Fri, 19 Apr 2013 15:21:24 +0000
- Subject: src/gdb ChangeLog mips-tdep.c
CVSROOT: /cvs/src
Module name: src
Changes by: palves@sourceware.org 2013-04-19 15:21:24
Modified files:
gdb : ChangeLog mips-tdep.c
Log message:
mips-tdep.c: Wrong signness for local holding PC register.
Addresses on MIPS are signed, and we're indeed using
regcache_cooked_read_signed to read the PC, but, we're passing it the
address of an unsigned variable, which triggers a -Wpointer-sign
warning. I've chosen to change the variable's type. I believe this
will end up being the same (though I can't test it).
gdb/
2013-04-19 Pedro Alves <palves@redhat.com>
* mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15437&r2=1.15438
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mips-tdep.c.diff?cvsroot=src&r1=1.569&r2=1.570