X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftarget.h;h=6b5b6e0c1c671a1846008cc9d702d309f191d4c0;hb=945e0f82dad31db89a107b496532886fe215c011;hp=e1419a94e55b732b93c5e0b53d2c303681561092;hpb=2f99e8fc9cb84ca80cfca6c119f1f22bbfd2a314;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/target.h b/gdb/target.h index e1419a94e5..6b5b6e0c1c 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -645,8 +645,8 @@ struct target_ops TARGET_DEFAULT_IGNORE (); void (*to_interrupt) (struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE (); - void (*to_check_pending_interrupt) (struct target_ops *) - TARGET_DEFAULT_IGNORE (); + void (*to_pass_ctrlc) (struct target_ops *) + TARGET_DEFAULT_FUNC (default_target_pass_ctrlc); void (*to_rcmd) (struct target_ops *, const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC (default_rcmd); @@ -1716,13 +1716,16 @@ extern void target_stop (ptid_t ptid); extern void target_interrupt (ptid_t ptid); -/* Some targets install their own SIGINT handler while the target is - running. This method is called from the QUIT macro to give such - targets a chance to process a Ctrl-C. The target may e.g., choose - to interrupt the (potentially) long running operation, or give up - waiting and disconnect. */ +/* Pass a ^C, as determined to have been pressed by checking the quit + flag, to the target. Normally calls target_interrupt, but remote + targets may take the opportunity to detect the remote side is not + responding and offer to disconnect. */ + +extern void target_pass_ctrlc (void); -extern void target_check_pending_interrupt (void); +/* The default target_ops::to_pass_ctrlc implementation. Simply calls + target_interrupt. */ +extern void default_target_pass_ctrlc (struct target_ops *ops); /* Send the specified COMMAND to the target's monitor (shell,interpreter) for execution. The result of the query is @@ -1922,7 +1925,8 @@ extern const char *target_thread_name (struct thread_info *); TYPE isn't supported. TYPE is one of bp_hardware_watchpoint, bp_read_watchpoint, bp_write_watchpoint, or bp_hardware_breakpoint. CNT is the number of such watchpoints used so far, including this - one. OTHERTYPE is who knows what... */ + one. OTHERTYPE is the number of watchpoints of other types than + this one used so far. */ #define target_can_use_hardware_watchpoint(TYPE,CNT,OTHERTYPE) \ (*current_target.to_can_use_hw_breakpoint) (¤t_target, \