aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-main.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-08-31 08:41:57 +0000
committerYao Qi <yao@codesourcery.com>2012-08-31 08:41:57 +0000
commit648beb2ba96d3bfeebd522c97a2da50469d23dda (patch)
treecb7b9815c4740736508058e49af263061090920e /gdb/mi/mi-main.c
parentef07a9f76646bef69c1a6d5ed96ac4f8294c24d3 (diff)
downloadgdb-648beb2ba96d3bfeebd522c97a2da50469d23dda.zip
gdb-648beb2ba96d3bfeebd522c97a2da50469d23dda.tar.gz
gdb-648beb2ba96d3bfeebd522c97a2da50469d23dda.tar.bz2
gdb/
* mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1. Update some commands. * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field. * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification' to 1.
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r--gdb/mi/mi-main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 4db3652..f1d21bc 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -2097,17 +2097,10 @@ mi_cmd_execute (struct mi_parse *parse)
current_context = parse;
- if (strncmp (parse->command, "break-", sizeof ("break-") - 1 ) == 0)
+ if (parse->cmd->suppress_notification != NULL)
{
- make_cleanup_restore_integer (&mi_suppress_notification.breakpoint);
- mi_suppress_notification.breakpoint = 1;
- }
- else if (strncmp (parse->command, "gdb-set", sizeof ("gdb-set") - 1) == 0)
- {
- int *p = &mi_suppress_notification.cmd_param_changed;
-
- make_cleanup_restore_integer (p);
- mi_suppress_notification.cmd_param_changed = 1;
+ make_cleanup_restore_integer (parse->cmd->suppress_notification);
+ *parse->cmd->suppress_notification = 1;
}
if (parse->cmd->argv_func != NULL)