diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2004-06-08 05:27:32 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2004-06-08 05:27:32 +0000 |
commit | a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e (patch) | |
tree | 7e284b09931c875ba6551006dfc65885f379f63b /gdb/mn10300-tdep.c | |
parent | c892bb64944ed2da49197ef4f5859af6e1bfb9fc (diff) | |
download | gdb-a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e.zip gdb-a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e.tar.gz gdb-a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e.tar.bz2 |
* mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
regs if PC is on movm.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r-- | gdb/mn10300-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index a065e18..1ecf8cb 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; |