From a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 8 Jun 2004 05:27:32 +0000 Subject: [PATCH] * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved regs if PC is on movm. --- gdb/ChangeLog | 5 +++++ gdb/mn10300-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e5442b74b49..60f38549305 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-06-08 Alexandre Oliva + + * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved + regs if PC is on movm. + 2004-06-07 Jim Blandy Add native Linux support for the PowerPC E500. diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index a065e184f4a..1ecf8cb80ab 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -457,8 +457,8 @@ mn10300_analyze_prologue (struct frame_info *fi, CORE_ADDR pc) addr = func_addr; /* Suck in two bytes. */ - status = read_memory_nobpt (addr, buf, 2); - if (status != 0) + if (addr + 2 >= stop + || (status = read_memory_nobpt (addr, buf, 2)) != 0) { fix_frame_pointer (fi, 0); return addr; -- 2.30.2