26 dbg_cmd_break (
char *psz_args)
28 if (!psz_args || !*psz_args) {
32 char *psz_target =
get_word(&psz_args);
35 unsigned int i_brkpt_mask =
BRK_NONE;
39 unsigned int u_lineno=0;
41 if (
get_uint(psz_target, &u_lineno,
false)) {
43 u_lineno, &entry_type);
46 dbg_errmsg(
"Can't find target or pattern on line %s.\n" 47 "Use 'info lines' to get a list of breakpoint lines.",
52 dbg_errmsg(
"No support of breakpoints on target patterns yet.");
64 dbg_errmsg(
"Can't find target %s; breakpoint not set.", psz_target);
69 if (!(psz_args && *psz_args))
72 while ((psz_break_type =
get_word(&psz_args))) {
73 if (!(psz_break_type && *psz_break_type))
break;
84 dbg_cmd_break_init(
unsigned int c)
86 short_command[c].func = &dbg_cmd_break;
87 short_command[c].use =
_(
"break [TARGET|LINENUM] [all|run|prereq|end]*");
file_t * p_target
Definition: trace.h:81
file_t * target_for_file_and_line(const char *psz_filename, unsigned int lineno, f2l_entry_t *entry_type)
bool get_uint(const char *psz_arg, unsigned int *pi_result, bool b_warn)
bool add_breakpoint(file_t *p_target, unsigned int brkp_mask)
gmk_floc floc
Definition: filedef.h:39
target_stack_node_t * p_stack
debug_return_t
Definition: trace.h:32
void list_breakpoints(void)
f2l_entry_t
Definition: file2line.h:24
#define _(msgid)
Definition: make.h:293
Definition: file2line.h:25
file_t * lookup_file(const char *name)
char * variable_expand_set(char *psz_line, variable_set_list_t *p_file_set)
struct variable_set_list * variables
Definition: filedef.h:60
char * get_word(char **ppsz_str)
const char * filenm
Definition: gnuremake.h:25
brkpt_mask_t get_brkpt_option(const char *psz_break_type)