aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
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 /gdb/d10v-tdep.c
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.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c2
1 files changed, 1 insertions, 1 deletions
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;
}