aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-12-22 23:56:01 +0000
committerMartin Hunt <hunt@redhat.com>1996-12-22 23:56:01 +0000
commit294f72b25b6f89c7254403e59640ecb062b778aa (patch)
tree8c95e99410b4ac75a6e6427e0b4e2a592d78b1f2
parent988eafc044ac74a0c2365a4f08dc725f11177918 (diff)
downloadgdb-294f72b25b6f89c7254403e59640ecb062b778aa.zip
gdb-294f72b25b6f89c7254403e59640ecb062b778aa.tar.gz
gdb-294f72b25b6f89c7254403e59640ecb062b778aa.tar.bz2
Sun Dec 22 15:52:25 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-tdep.c (d10v_skip_prologue): PR11287. Fix problem where some breakpoints weren't being set.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/d10v-tdep.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8da8b92..56f0c08 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+start-sanitize-d10v
+Sun Dec 22 15:52:25 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
+
+ * d10v-tdep.c (d10v_skip_prologue): PR11287. Fix problem where
+ some breakpoints weren't being set.
+
+end-sanitize-d10v
Sat Dec 21 12:57:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* config/mips/tm-mips.h (PC_IN_CALL_DUMMY): Removed, the default
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 790a153..1f021ce 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -131,7 +131,7 @@ d10v_skip_prologue (pc)
if (find_pc_partial_function (pc, NULL, &func_addr, &func_end))
{
sal = find_pc_line (func_addr, 0);
- if (sal.end < func_end)
+ if ( sal.end && sal.end < func_end)
return sal.end;
}