OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dd6b59
)
* mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
author
aoliva
<aoliva>
Tue, 8 Jun 2004 05:27:32 +0000
(
05:27
+0000)
committer
aoliva
<aoliva>
Tue, 8 Jun 2004 05:27:32 +0000
(
05:27
+0000)
regs if PC is on movm.
gdb/mn10300-tdep.c
patch
|
blob
|
history
diff --git
a/gdb/mn10300-tdep.c
b/gdb/mn10300-tdep.c
index
a065e18
..
1ecf8cb
100644
(file)
--- 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;