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 | |
parent | c892bb64944ed2da49197ef4f5859af6e1bfb9fc (diff) | |
download | fsf-binutils-gdb-a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e.zip fsf-binutils-gdb-a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e.tar.gz fsf-binutils-gdb-a72fbdb7d4b6d9b0302fe1daaf4fca559e82e81e.tar.bz2 |
* mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
regs if PC is on movm.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mn10300-tdep.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e5442b7..60f3854 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-06-08 Alexandre Oliva <aoliva@redhat.com> + + * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved + regs if PC is on movm. + 2004-06-07 Jim Blandy <jimb@redhat.com> Add native Linux support for the PowerPC E500. 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; |