From d15bfd3a43117017e919e0b1fc2bb09a7dd535fd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 2 Apr 2004 23:01:14 +0000 Subject: 2004-04-02 Joel Brobecker Committed by Andrew Cagney . * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take into account an instruction saving a register if we have already seen an earlier instruction saving that same register. --- gdb/alpha-tdep.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/alpha-tdep.c') diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 8777afc..0f4eaa7 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -1029,6 +1029,16 @@ alpha_heuristic_frame_unwind_cache (struct frame_info *next_frame, { 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; -- cgit v1.1