* infrun.c (wait_for_inferior): Check return value from
authorStu Grossman <grossman@cygnus>
Wed, 23 Oct 1991 01:06:36 +0000 (01:06 +0000)
committerStu Grossman <grossman@cygnus>
Wed, 23 Oct 1991 01:06:36 +0000 (01:06 +0000)
find_pc_line.

gdb/infrun.c

index 5f85779de79a73f7c77c46f97efd90f1f1bea5de..1aea0a2a2c15e87617eb1db70db20a23999a6787 100644 (file)
@@ -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 {
This page took 0.026195 seconds and 4 git commands to generate.