* [PATCH v2] Add comment for mi_run_cmd_full
@ 2014-05-22 18:02 Simon Marchi
2014-05-22 18:11 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Simon Marchi @ 2014-05-22 18:02 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
It should clear up confusion about the args parameter to mi_run_cmd_full.
Thanks to Joel for the 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.
---
gdb/testsuite/lib/mi-support.exp | 12 ++++++++++++
1 file changed, 12 insertions(+)
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 } {
--
2.0.0.rc0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v2] Add comment for mi_run_cmd_full
2014-05-22 18:02 [PATCH v2] Add comment for mi_run_cmd_full Simon Marchi
@ 2014-05-22 18:11 ` Joel Brobecker
2014-05-22 18:18 ` Simon Marchi
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2014-05-22 18:11 UTC (permalink / raw)
To: Simon Marchi; +Cc: gdb-patches
> Thanks to Joel for the clear formulation. I also added a comment about the
> impact of use_gdb_stub.
A useful addition, as I missed it when I read the function's code!
> gdb/testsuite/ChangeLog:
>
> 2014-05-22 Simon Marchi <simon.marchi@ericsson.com>
>
> * lib/mi-support.exp (mi_run_cmd_full): Add comments.
OK to push.
Thank you!
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] Add comment for mi_run_cmd_full
2014-05-22 18:11 ` Joel Brobecker
@ 2014-05-22 18:18 ` Simon Marchi
0 siblings, 0 replies; 3+ messages in thread
From: Simon Marchi @ 2014-05-22 18:18 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
On Thu 22 May 2014 02:11:42 PM EDT, Joel Brobecker wrote:
>> Thanks to Joel for the clear formulation. I also added a comment about the
>> impact of use_gdb_stub.
>
> A useful addition, as I missed it when I read the function's code!
>
>> gdb/testsuite/ChangeLog:
>>
>> 2014-05-22 Simon Marchi <simon.marchi@ericsson.com>
>>
>> * lib/mi-support.exp (mi_run_cmd_full): Add comments.
>
> OK to push.
>
> Thank you!
Pushed!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-22 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22 18:02 [PATCH v2] Add comment for mi_run_cmd_full Simon Marchi
2014-05-22 18:11 ` Joel Brobecker
2014-05-22 18:18 ` Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox