This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix an unwinding problem on alpha-tru64
- From: Andrew Cagney <cagney at gnu dot org>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 02 Apr 2004 18:01:43 -0500
- Subject: Re: [RFA] Fix an unwinding problem on alpha-tru64
- References: <20040401003449.GY888@gnat.com>
Applied and committed, trunk and branch.
Index: alpha-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
retrieving revision 1.128
diff -u -p -r1.128 alpha-tdep.c
--- alpha-tdep.c 23 Mar 2004 14:47:54 -0000 1.128
+++ alpha-tdep.c 31 Mar 2004 23:58:36 -0000
@@ -1029,6 +1029,16 @@ alpha_heuristic_frame_unwind_cache (stru
{
reg = (word & 0x03e00000) >> 21;
+ /* Ignore this instruction if we have already encountered
+ an instruction saving the same register earlier in the
+ function code. The current instruction does not tell
+ us where the original value upon function entry is saved.
+ All it says is that the function we are scanning reused
+ that register for some computation of its own, and is now
+ saving its result. */
+ if (info->saved_regs[reg])
+ continue;
+
if (reg == 31)
continue;
Andrew