aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-01-30 18:28:01 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-01-30 18:28:01 +0000
commit41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67 (patch)
treec82ea17b7df6f8187aa15cd97695703bad77cc09 /gdb/mi
parent33a7ffc270cc08ccec978d8e6ca2ea29e75c5478 (diff)
downloadgdb-41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67.zip
gdb-41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67.tar.gz
gdb-41447f92e2151bd8fcd5f3e4b8dd5e972aec9b67.tar.bz2
* breakpoint.c (create_breakpoint, create_breakpoints)
(break_command_really, set_breakpoint): New parameter enabled. (create_breakpoint, break_command_really): Make breakpoint disabled if so requested. * breakpoint.h (set_breakpoint): New parameter enabled. * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-break.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c
index af14b0a..0de08ce 100644
--- a/gdb/mi/mi-cmd-break.c
+++ b/gdb/mi/mi-cmd-break.c
@@ -71,12 +71,14 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
int ignore_count = 0;
char *condition = NULL;
int pending = 0;
+ int enabled = 1;
+
struct gdb_exception e;
struct gdb_events *old_hooks;
enum opt
{
HARDWARE_OPT, TEMP_OPT /*, REGEXP_OPT */ , CONDITION_OPT,
- IGNORE_COUNT_OPT, THREAD_OPT, PENDING_OPT
+ IGNORE_COUNT_OPT, THREAD_OPT, PENDING_OPT, DISABLE_OPT
};
static struct mi_opt opts[] =
{
@@ -86,6 +88,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
{"i", IGNORE_COUNT_OPT, 1},
{"p", THREAD_OPT, 1},
{"f", PENDING_OPT, 0},
+ {"d", DISABLE_OPT, 0},
{ 0, 0, 0 }
};
@@ -123,6 +126,8 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
case PENDING_OPT:
pending = 1;
break;
+ case DISABLE_OPT:
+ enabled = 0;
}
}
@@ -151,13 +156,13 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
set_breakpoint (address, condition,
0 /*hardwareflag */ , temp_p,
thread, ignore_count,
- pending);
+ pending, enabled);
break;
case HW_BP:
set_breakpoint (address, condition,
1 /*hardwareflag */ , temp_p,
thread, ignore_count,
- pending);
+ pending, enabled);
break;
#if 0
case REGEXP_BP: