From: Ulrich Weigand Date: Wed, 3 Sep 2008 19:19:42 +0000 (+0000) Subject: * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4891da7f9acc20edcc7b8ba551c44efd79b199c;p=binutils-gdb.git * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind SP or return address if we failed to find a valid frame. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0aa10518327..a52ce2ec2ac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-09-03 Ulrich Weigand + + * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind + SP or return address if we failed to find a valid frame. + 2008-09-03 Aleksandar Ristovski * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c index 6e2fdb7212e..b016d4ba79e 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -910,6 +910,10 @@ spu_frame_unwind_cache (struct frame_info *this_frame, } } + /* If we didn't find a frame, we cannot determine SP / return address. */ + if (info->frame_base == 0) + return info; + /* The previous SP is equal to the CFA. */ trad_frame_set_value (info->saved_regs, SPU_SP_REGNUM, info->frame_base);