| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
#include "../../src/trace.h" |
| 29 |
#include "../../src/expand.h" |
| 30 |
#include "../break.h" |
| 31 |
#include "../fns.h" |
| 32 |
#include "../stack.h" |
| 33 |
|
| 34 |
extern debug_return_t |
| 35 |
dbg_cmd_continue (char *psz_args) |
| 36 |
{ |
| 37 |
if (psz_args && *psz_args) { |
| 38 |
char *psz_target = get_word(&psz_args); |
| 39 |
file_t *p_target = NULL; |
| 40 |
brkpt_mask_t i_brkpt_mask; |
| 41 |
|
| 42 |
|
| 43 |
if (p_stack && p_stack->p_target) { |
| 44 |
char *psz_expanded_target = |
| 45 |
variable_expand_set(psz_target, p_stack->p_target->variables); |
| 46 |
if (*psz_expanded_target) { |
| 47 |
p_target = lookup_file(psz_expanded_target); |
| 48 |
} |
| 49 |
} else |
| 50 |
p_target = lookup_file(psz_target); |
| 51 |
|
| 52 |
if (!p_target) { |
| 53 |
printf("Can't find target %s; breakpoint not set.\n", psz_target); |
| 54 |
return debug_cmd_error; |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
psz_args = get_word(&psz_args); |
| 59 |
if (!(psz_args && *psz_args)) |
| 60 |
i_brkpt_mask = BRK_ALL; |
| 61 |
else { |
| 62 |
char *psz_break_type; |
| 63 |
i_brkpt_mask = get_brkpt_option(psz_args); |
| 64 |
while ((psz_break_type = get_word(&psz_args))) { |
| 65 |
if (!(psz_break_type && *psz_break_type)) break; |
| 66 |
i_brkpt_mask |= get_brkpt_option(psz_break_type) ; |
| 67 |
} |
| 68 |
} |
| 69 |
|
| 70 |
if (!add_breakpoint(p_target, i_brkpt_mask|BRK_TEMP)) |
| 71 |
return debug_cmd_error; |
| 72 |
} else { |
| 73 |
db_level = 0; |
| 74 |
} |
| 75 |
|
| 76 |
i_debugger_stepping = 0; |
| 77 |
i_debugger_nexting = 0; |
| 78 |
define_variable_in_set("MAKEFLAGS", sizeof("MAKEFLAGS")-1, |
| 79 |
"", o_debugger, 0, NULL, NULL); |
| 80 |
return continue_execution; |
| 81 |
}; |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|