diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/spu-tdep.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 48cbd0e..40e2f97 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-04-15 Joel Brobecker <brobecker@adacore.com> + + * spu-tdep.c (spu_write_pc): Add empty line after local variable + declarations. + 2013-04-13 Yao Qi <yao@codesourcery.com> * ctf.c (_initialize_ctf): Include "completer.h". diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c index 4365da1..2e1bb4a 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -1135,6 +1135,7 @@ spu_write_pc (struct regcache *regcache, CORE_ADDR pc) { /* Keep interrupt enabled state unchanged. */ ULONGEST old_pc; + regcache_cooked_read_unsigned (regcache, SPU_PC_REGNUM, &old_pc); regcache_cooked_write_unsigned (regcache, SPU_PC_REGNUM, (SPUADDR_ADDR (pc) & -4) | (old_pc & 3)); |