* infrun.c (handle_inferior_event): Don't
authorVladimir Prus <vladimir@codesourcery.com>
Fri, 30 Nov 2007 10:03:16 +0000 (10:03 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 30 Nov 2007 10:03:16 +0000 (10:03 +0000)
        ignore beakpoints if trap_expected is set.

gdb/ChangeLog
gdb/infrun.c

index 6e257fe97b40186035a6aa0abe67d5202ff91d8f..4850791c44d89f32e3a623c377c7d6fdc1ed2a78 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-30  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): Don't
+        ignore beakpoints if trap_expected is set.
+
 2007-11-30  Vladimir Prus  <vladimir@codesourcery.com>
 
        Make insert_breakpoints return void.    
index 62d6d1e3a4bb200d04977b0e0598d61a7b606c4a..1e3839add5387158958f0d3f60a841699acfb33d 100644 (file)
@@ -1964,23 +1964,12 @@ handle_inferior_event (struct execution_control_state *ecs)
          return;
        }
 
-      /* Don't even think about breakpoints if just proceeded over a
-         breakpoint.  */
-      if (stop_signal == TARGET_SIGNAL_TRAP && trap_expected)
-       {
-          if (debug_infrun)
-           fprintf_unfiltered (gdb_stdlog, "infrun: trap expected\n");
-         bpstat_clear (&stop_bpstat);
-       }
-      else
-       {
-         /* See if there is a breakpoint at the current PC.  */
-         stop_bpstat = bpstat_stop_status (stop_pc, ecs->ptid);
-
-         /* Following in case break condition called a
-            function.  */
-         stop_print_frame = 1;
-       }
+      /* See if there is a breakpoint at the current PC.  */
+      stop_bpstat = bpstat_stop_status (stop_pc, ecs->ptid);
+      
+      /* Following in case break condition called a
+        function.  */
+      stop_print_frame = 1;
 
       /* NOTE: cagney/2003-03-29: These two checks for a random signal
          at one stage in the past included checks for an inferior