summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/mips-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cfd5449e023..9314749344f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2013-04-19 Pedro Alves <palves@redhat.com>
+ * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
+
+2013-04-19 Pedro Alves <palves@redhat.com>
+
* mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
unsigned long *.
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 8e5d5d2cd84..245ffd6bb4b 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1245,7 +1245,7 @@ static CORE_ADDR
mips_read_pc (struct regcache *regcache)
{
int regnum = gdbarch_pc_regnum (get_regcache_arch (regcache));
- ULONGEST pc;
+ LONGEST pc;
regcache_cooked_read_signed (regcache, regnum, &pc);
if (is_compact_addr (pc))