From: Stu Grossman Date: Wed, 23 Oct 1991 01:06:36 +0000 (+0000) Subject: * infrun.c (wait_for_inferior): Check return value from X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e393ce47860ea49940ae8cfd193785c95af1b40;p=binutils-gdb.git * infrun.c (wait_for_inferior): Check return value from find_pc_line. --- diff --git a/gdb/infrun.c b/gdb/infrun.c index 5f85779de79..1aea0a2a2c1 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1245,8 +1245,9 @@ wait_for_inferior () step_range_start and step_range_end, and just continue. */ sal = find_pc_line(stop_pc, 0); - if (current_line != sal.line - && stop_pc == sal.pc) { + if (sal.line == 0 || /* Stop now if no line # info */ + (current_line != sal.line + && stop_pc == sal.pc)) { stop_step = 1; break; } else {