aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.c
diff options
context:
space:
mode:
authorMaxim Grigoriev <maxim2405@gmail.com>2009-05-06 00:37:22 +0000
committerMaxim Grigoriev <maxim2405@gmail.com>2009-05-06 00:37:22 +0000
commitf6402f18d5bb784b2a4d66917fe2bb08969f7e34 (patch)
tree127bc7f8c6ab2aae7d1f3625c71ac20b10c36ce3 /gdb/xtensa-tdep.c
parent3e6a008f6503a2867cd090a76f1c00b8d707aec0 (diff)
downloadgdb-f6402f18d5bb784b2a4d66917fe2bb08969f7e34.zip
gdb-f6402f18d5bb784b2a4d66917fe2bb08969f7e34.tar.gz
gdb-f6402f18d5bb784b2a4d66917fe2bb08969f7e34.tar.bz2
2009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
Diffstat (limited to 'gdb/xtensa-tdep.c')
-rw-r--r--gdb/xtensa-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index 31683ec..9f0d46a 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -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);
}