From 294f72b25b6f89c7254403e59640ecb062b778aa Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Sun, 22 Dec 1996 23:56:01 +0000 Subject: [PATCH] Sun Dec 22 15:52:25 1996 Martin M. Hunt * d10v-tdep.c (d10v_skip_prologue): PR11287. Fix problem where some breakpoints weren't being set. --- gdb/ChangeLog | 7 +++++++ gdb/d10v-tdep.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8da8b92a47..56f0c08ad4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +start-sanitize-d10v +Sun Dec 22 15:52:25 1996 Martin M. Hunt + + * 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 790a153f3e..1f021ce66c 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; }