* [PATCH] Revert "Fix argument passing in mi_run_cmd_full"
@ 2014-05-21 21:23 Simon Marchi
2014-05-21 21:27 ` Pedro Alves
0 siblings, 1 reply; 2+ messages in thread
From: Simon Marchi @ 2014-05-21 21:23 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
This reverts commit 8c217a4b684386aa5ce6a078dffbe63265a524e6.
Following this
https://sourceware.org/ml/gdb-patches/2014-05/msg00462.html
I suggest reverting my previous commit. I will follow with another
patch to add comments, to clarify some things as stated in the mail
thread.
I ran make check with on gdb.mi, and the test that the commit broke
passes again.
gdb/testsuite/ChangeLog:
2014-05-21 Simon Marchi <simon.marchi@ericsson.com>
* lib/mi-support.exp (mi_run_cmd_full): Revert to original
behavior for $args, pass it directly to "run".
---
gdb/testsuite/lib/mi-support.exp | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index afe13e8..6d011b9 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -818,11 +818,9 @@ proc mi_run_cmd_full {use_mi_command args} {
if {$use_mi_command} {
set run_prefix "220-exec-"
set run_match "220"
- set set_args_cmd "-exec-arguments"
} else {
set run_prefix ""
set run_match ""
- set set_args_cmd "set args"
}
if [target_info exists gdb_init_command] {
@@ -864,16 +862,7 @@ proc mi_run_cmd_full {use_mi_command args} {
return 0
}
- send_gdb "${set_args_cmd} $args\n"
- gdb_expect {
- -re "$mi_gdb_prompt$" { }
- default {
- perror "settings args failed"
- return -1
- }
- }
-
- send_gdb "${run_prefix}run\n"
+ send_gdb "${run_prefix}run $args\n"
gdb_expect {
-re "${run_match}\\^running\r\n(\\*running,thread-id=\"\[^\"\]+\"\r\n|=thread-created,id=\"1\",group-id=\"\[0-9\]+\"\r\n)*(${library_loaded_re})*(${thread_selected_re})?${mi_gdb_prompt}" {
}
--
2.0.0.rc0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Revert "Fix argument passing in mi_run_cmd_full"
2014-05-21 21:23 [PATCH] Revert "Fix argument passing in mi_run_cmd_full" Simon Marchi
@ 2014-05-21 21:27 ` Pedro Alves
0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2014-05-21 21:27 UTC (permalink / raw)
To: Simon Marchi, gdb-patches
On 05/21/2014 10:22 PM, Simon Marchi wrote:
> This reverts commit 8c217a4b684386aa5ce6a078dffbe63265a524e6.
>
> Following this
>
> https://sourceware.org/ml/gdb-patches/2014-05/msg00462.html
>
> I suggest reverting my previous commit. I will follow with another
> patch to add comments, to clarify some things as stated in the mail
> thread.
Thanks!
> I ran make check with on gdb.mi, and the test that the commit broke
> passes again.
> gdb/testsuite/ChangeLog:
>
> 2014-05-21 Simon Marchi <simon.marchi@ericsson.com>
>
> * lib/mi-support.exp (mi_run_cmd_full): Revert to original
> behavior for $args, pass it directly to "run".
OK
Thanks,
--
Pedro Alves
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-21 21:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21 21:23 [PATCH] Revert "Fix argument passing in mi_run_cmd_full" Simon Marchi
2014-05-21 21:27 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox