diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2014-05-22 14:01:46 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2014-05-22 14:13:09 -0400 |
commit | a2199296ce71a44981f1d6ad7800e7742ff39dd8 (patch) | |
tree | 94a169e5326bb5974b42b75e77078c25a011c4bc /gdb/testsuite | |
parent | 036cd38182bde32d8297b630cd5c861d53b8949e (diff) | |
download | gdb-a2199296ce71a44981f1d6ad7800e7742ff39dd8.zip gdb-a2199296ce71a44981f1d6ad7800e7742ff39dd8.tar.gz gdb-a2199296ce71a44981f1d6ad7800e7742ff39dd8.tar.bz2 |
Add comment for mi_run_cmd_full
It should clear up confusion about the args parameter to mi_run_cmd_full.
Thanks to Joel for clear formulation. I also added a comment about the
impact of use_gdb_stub.
gdb/testsuite/ChangeLog:
2014-05-22 Simon Marchi <simon.marchi@ericsson.com>
* lib/mi-support.exp (mi_run_cmd_full): Add comments.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b25e478..1473d96 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-05-22 Simon Marchi <simon.marchi@ericsson.com> + + * lib/mi-support.exp (mi_run_cmd_full): Add comments. + 2014-05-21 Pedro Alves <palves@redhat.com> PR gdb/13860 diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 09a514b..9f07cda 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -830,6 +830,18 @@ proc mi_gdb_expect_cli_output {until message} { # In patterns, the newline sequence ``\r\n'' is matched explicitly as # ``.*$'' could swallow up output that we attempt to match elsewhere. +# Send the command to run the test program. +# +# If USE_MI_COMMAND is true, the "-exec-run" command is used. +# Otherwise, the "run" (CLI) command is used. If the global USE_GDB_STUB is +# true, -exec-continue and continue are used instead of their run counterparts. +# +# ARGS is passed as argument to the command used to run the test program. +# Beware that arguments to "-exec-run" do not have the same semantics as +# arguments to the "run" command, so USE_MI_COMMAND influences the meaning +# of ARGS. If USE_MI_COMMAND is true, they are arguments to -exec-run. +# If USE_MI_COMMAND is false, they are effectively arguments passed +# to the test program. If the global USE_GDB_STUB is true, ARGS is not used. proc mi_run_cmd_full {use_mi_command args} { global suppress_flag if { $suppress_flag } { |