+2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ Implement creating tracepoints with -break-insert.
+
+ * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
+ to mean that tracepoint should be created.
+
2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
* breakpoint.c (check_no_tracepoint_commands): Use
char *condition = NULL;
int pending = 0;
int enabled = 1;
+ int tracepoint = 0;
struct cleanup *back_to;
struct gdb_exception e;
enum opt
{
HARDWARE_OPT, TEMP_OPT, CONDITION_OPT,
- IGNORE_COUNT_OPT, THREAD_OPT, PENDING_OPT, DISABLE_OPT
+ IGNORE_COUNT_OPT, THREAD_OPT, PENDING_OPT, DISABLE_OPT,
+ TRACEPOINT_OPT,
};
static struct mi_opt opts[] =
{
{"p", THREAD_OPT, 1},
{"f", PENDING_OPT, 0},
{"d", DISABLE_OPT, 0},
+ {"a", TRACEPOINT_OPT, 0},
{ 0, 0, 0 }
};
break;
case DISABLE_OPT:
enabled = 0;
+ break;
+ case TRACEPOINT_OPT:
+ tracepoint = 1;
+ break;
}
}
mi_can_breakpoint_notify = 1;
create_breakpoint (get_current_arch (), address, condition, thread,
0 /* condition and thread are valid. */,
- temp_p, hardware, 0 /* traceflag */,
+ temp_p, hardware, tracepoint,
ignore_count,
pending ? AUTO_BOOLEAN_TRUE : AUTO_BOOLEAN_FALSE,
NULL, 0, enabled);