aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmds.h
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-cmds.h
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-cmds.h')
-rw-r--r--gdb/mi/mi-cmds.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmds.h b/gdb/mi/mi-cmds.h
index 4d0fc9d..cf1a5eb 100644
--- a/gdb/mi/mi-cmds.h
+++ b/gdb/mi/mi-cmds.h
@@ -138,6 +138,12 @@ struct mi_cmd
struct mi_cli cli;
/* If non-null, the function implementing the MI command. */
mi_cmd_argv_ftype *argv_func;
+ /* If non-null, the pointer to a field in
+ 'struct mi_suppress_notification', which will be set to true by MI
+ command processor (mi-main.c:mi_cmd_execute) when this command is
+ being executed. It will be set back to false when command has been
+ executed. */
+ int *suppress_notification;
};
/* Lookup a command in the MI command table. */