gdb/
authorYao Qi <yao@codesourcery.com>
Thu, 30 May 2013 00:25:16 +0000 (00:25 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 30 May 2013 00:25:16 +0000 (00:25 +0000)
* mi/mi-cmds.c (mi_cmds): Define MI command
'-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
DEF_MI_CMD_CLI.

gdb/testsuite/
* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
Add a test that no MI notification is emitted when executing
-exec-arguments.

gdb/ChangeLog
gdb/mi/mi-cmds.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp

index 395326b09944bca73dc5991ccf2b5032ebe5031a..aecb5e19ba9908343dec4eb8c447749818990bce 100644 (file)
@@ -1,3 +1,9 @@
+2013-05-30  Yao Qi  <yao@codesourcery.com>
+
+       * mi/mi-cmds.c (mi_cmds): Define MI command
+       '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
+       DEF_MI_CMD_CLI.
+
 2013-05-29  Pedro Alves  <palves@redhat.com>
 
        * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
index 124a9dd824975d6a445166f9b00ea729182d7e17..eb67abe0159a325044269510a4faec485e206053 100644 (file)
@@ -93,7 +93,8 @@ static struct mi_cmd mi_cmds[] =
   DEF_MI_CMD_MI ("environment-directory", mi_cmd_env_dir),
   DEF_MI_CMD_MI ("environment-path", mi_cmd_env_path),
   DEF_MI_CMD_MI ("environment-pwd", mi_cmd_env_pwd),
-  DEF_MI_CMD_CLI ("exec-arguments", "set args", 1),
+  DEF_MI_CMD_CLI_1 ("exec-arguments", "set args", 1,
+                   &mi_suppress_notification.cmd_param_changed),
   DEF_MI_CMD_MI ("exec-continue", mi_cmd_exec_continue),
   DEF_MI_CMD_MI ("exec-finish", mi_cmd_exec_finish),
   DEF_MI_CMD_MI ("exec-jump", mi_cmd_exec_jump),
index 3428dde009a469b797d6e0d25d03f5bcd737684e..e89741a8381e6b01d49b19b6b2476c911525e824 100644 (file)
@@ -1,3 +1,9 @@
+2013-05-30  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
+       Add a test that no MI notification is emitted when executing
+       -exec-arguments.
+
 2013-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR testsuite/12649
index 7fc025febc6b0883e1a3b443ada97049037ae3cf..1791c979f1d9d9b8655a3fa9f4899569440c8ad5 100644 (file)
@@ -44,6 +44,8 @@ proc test_command_param_changed { } {
        mi_gdb_test "-gdb-set scheduler-locking on" \
            {\^done} \
            "\"set scheduler-locking on\" no event (requested by MI)"
+       mi_gdb_test "-exec-arguments foo" {\^done} \
+           "\"-exec-arguments foo\" no event"
 
        mi_gdb_test "interpreter-exec mi \"-gdb-set scheduler-locking step\"" \
            "\\&\"interpreter-exec mi .*\"-gdb-set scheduler-locking step.*\"\\\\n\"\r\n\\^done\r\n\\^done" \