From f6402f18d5bb784b2a4d66917fe2bb08969f7e34 Mon Sep 17 00:00:00 2001 From: Maxim Grigoriev Date: Wed, 6 May 2009 00:37:22 +0000 Subject: [PATCH] 2009-05-05 Maxim Grigoriev * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc. --- gdb/ChangeLog | 4 ++++ gdb/xtensa-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 42a51e51489..4bc90f10df1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-05-05 Maxim Grigoriev + + * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc. + 2009-05-05 Ulrich Weigand * inferior.h (read_pc, write_pc): Remove. diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index 31683ecf27f..9f0d46a3eac 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); } -- 2.30.2