Add target-side support for dynamic printf.
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.c
index 3d116fd46a283c8cc8ca356218d95939457f5a60..48134c3d987fac55774a4d60c267784db4e6b2cd 100644 (file)
@@ -2618,7 +2618,10 @@ Check if we're already there.\n",
                   || (!step_over_finished
                       && !bp_explains_trap && !trace_event)
                   || (gdb_breakpoint_here (event_child->stop_pc)
-                  && gdb_condition_true_at_breakpoint (event_child->stop_pc)));
+                      && gdb_condition_true_at_breakpoint (event_child->stop_pc)
+                      && gdb_no_commands_at_breakpoint (event_child->stop_pc)));
+
+  run_breakpoint_commands (event_child->stop_pc);
 
   /* We found no reason GDB would want us to stop.  We either hit one
      of our own breakpoints, or finished an internal step GDB
@@ -3499,7 +3502,8 @@ need_step_over_p (struct inferior_list_entry *entry, void *dummy)
         though.  If the condition is being evaluated on the target's side
         and it evaluate to false, step over this breakpoint as well.  */
       if (gdb_breakpoint_here (pc)
-         && gdb_condition_true_at_breakpoint (pc))
+         && gdb_condition_true_at_breakpoint (pc)
+         && gdb_no_commands_at_breakpoint (pc))
        {
          if (debug_threads)
            fprintf (stderr,
This page took 0.024278 seconds and 4 git commands to generate.