mips-tdep.c: Wrong signness for local holding PC register.
authorPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:21:24 +0000 (15:21 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:21:24 +0000 (15:21 +0000)
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.


No differences found
This page took 0.026643 seconds and 4 git commands to generate.