115 uiout->
text (
"Temporary catchpoint ");
117 uiout->
text (
"Catchpoint ");
128 uiout->
text (
" (vforked process ");
130 uiout->
text (
" (forked process ");
149 if (opts.addressprint)
156 uiout->
text (
", process ");
187 bool temp,
const char *cond_string,
190 std::unique_ptr<fork_catchpoint> c
207 const char *cond_string = NULL;
216 arg = skip_spaces (arg);
225 if ((*arg !=
'\0') && !isspace (*arg))
226 error (_(
"Junk at end of arguments."));
241 error (_(
"unsupported or unknown fork kind; cannot catch it"));
void annotate_field(int num)
void annotate_catchpoint(int num)
struct gdbarch * get_current_arch(void)
const char * ep_parse_optional_if_clause(const char **arg)
static void catch_fork_command_1(const char *arg, int from_tty, struct cmd_list_element *command)
static void create_fork_vfork_event_catchpoint(struct gdbarch *gdbarch, bool temp, const char *cond_string, bool is_vfork)
void _initialize_break_catch_fork()
void add_catch_command(const char *name, const char *docstring, cmd_func_ftype *func, completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
const char * bpdisp_text(enum bpdisp disp)
breakpoint * install_breakpoint(int internal, std::unique_ptr< breakpoint > &&arg, int update_gll)
void maybe_print_thread_hit_breakpoint(struct ui_out *uiout)
void void void spaces(int numspaces)
void field_string(const char *fldname, const char *string, const ui_file_style &style=ui_file_style())
void field_signed(const char *fldname, LONGEST value)
void field_skip(const char *fldname)
void text(const char *string)
bool is_mi_like_p() const
const char * async_reason_lookup(enum async_reply_reason reason)
gdb::unique_xmalloc_ptr< char > cond_string
void print_recreate_thread(struct ui_file *fp) const
ptid_t forked_inferior_pid
void print_mention() const override
int insert_location(struct bp_location *) override
fork_catchpoint(struct gdbarch *gdbarch, bool temp, const char *cond_string, bool is_vfork_)
bool print_one(const bp_location **) const override
enum print_stop_action print_it(const bpstat *bs) const override
void print_recreate(struct ui_file *fp) const override
int remove_location(struct bp_location *, enum remove_bp_reason reason) override
int breakpoint_hit(const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws) override
target_waitkind kind() const
int target_remove_fork_catchpoint(int pid)
int target_insert_fork_catchpoint(int pid)
int target_insert_vfork_catchpoint(int pid)
int target_remove_vfork_catchpoint(int pid)
void gdb_printf(struct ui_file *stream, const char *format,...)
void get_user_print_options(struct value_print_options *opts)
@ TARGET_WAITKIND_VFORKED