2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
authorMaxim Grigoriev <maxim2405@gmail.com>
Wed, 6 May 2009 00:37:22 +0000 (00:37 +0000)
committerMaxim Grigoriev <maxim2405@gmail.com>
Wed, 6 May 2009 00:37:22 +0000 (00:37 +0000)
* xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.

gdb/ChangeLog
gdb/xtensa-tdep.c

index 42a51e5148967109f4a6a41dfb9dad6532883865..4bc90f10df1f1de957c121a32bdd0bf3486d7c65 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-05  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
+
 2009-05-05  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * inferior.h (read_pc, write_pc): Remove.
index 31683ecf27f423e6d723c5691bb931e9afb9cc9a..9f0d46a3eac0203b08bfbdfd3308775f86ba07d5 100644 (file)
@@ -1242,7 +1242,7 @@ xtensa_frame_cache (struct frame_info *this_frame, void **this_cache)
          cache->wd.ws = ws & ~(1 << wb);
 
          cache->pc = get_frame_func (this_frame);
-         cache->ra = (cache->pc & 0xc0000000) | (ra & 0x3fffffff);
+         cache->ra = (pc & 0xc0000000) | (ra & 0x3fffffff);
          cache->ps = (ps & ~PS_CALLINC_MASK)
            | ((WINSIZE(ra)/4) << PS_CALLINC_SHIFT);
        }