gdb: remove iterate_over_breakpoints function
[deliverable/binutils-gdb.git] / gdb / dummy-frame.c
index 155dec377f34435a4cf1cbedac3636a20889daab..68a6937974929d4a25a431a34069e5b39a2a0aa1 100644 (file)
@@ -166,10 +166,9 @@ pop_dummy_frame (struct dummy_frame **dummy_ptr)
 
   restore_infcall_suspend_state (dummy->caller_state);
 
-  iterate_over_breakpoints ([dummy] (breakpoint* bp)
-    {
-      return pop_dummy_frame_bpt (bp, dummy);
-    });
+  for (breakpoint *bp : all_breakpoints_safe ())
+    if (pop_dummy_frame_bpt (bp, dummy))
+      break;
 
   /* restore_infcall_control_state frees inf_state,
      all that remains is to pop *dummy_ptr.  */
This page took 0.025071 seconds and 4 git commands to generate.