This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Fix argument passing in mi_run_cmd_full
- From: Tom Tromey <tromey at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 19 May 2014 13:39:09 -0600
- Subject: Re: [PATCH v2] Fix argument passing in mi_run_cmd_full
- Authentication-results: sourceware.org; auth=none
- References: <1400017636-28020-1-git-send-email-simon dot marchi at ericsson dot com>
>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
Simon> 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
Simon> * lib/mi-support.exp (mi_run_cmd_full): Set arguments by calling
Simon> "-exec-arguments" or "set args" before running the inferior.
This patch causes a test failure here:
Running ../../../binutils-gdb/gdb/testsuite/gdb.mi/mi-start.exp ...
FAIL: gdb.mi/mi-start.exp: run to main (unknown output after running)
This failure isn't present in the previous revision.
I've appended the relevant section of gdb.log in case that is helpful.
Tom
(gdb)
220-exec-run
=thread-group-started,id="i1",pid="21201"
=thread-created,id="1",group-id="i1"
220^running
*running,thread-id="all"
(gdb)
mi_expect_stop: expecting: \*stopped,reason="breakpoint-hit",disp="del",bkptno="
[0-9]+",frame={addr="0x[0-9A-Fa-f]+",func="main",args=\[\],(?:file="[^
]*.*mi-start.c",fullname="(/[^\n]*/|\\\\[^\\]+\\[^\n]+\\|\\[^\\][^\n]*\\|[a-zA-Z
]:[^\n]*\\).*mi-start.c",line="[0-9]+"|from=".*mi-start.c")},thread-id="[0-9]+",
stopped-threads=[^
]*
(=thread-selected,id="[0-9]+"
|=(?:breakpoint-created|breakpoint-deleted)[^
]+"
)*[(]gdb[)]
$
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x8
6-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-gro
up="i1"
=library-loaded,id="/lib64/libm.so.6",target-name="/lib64/libm.so.6",host-name="
/lib64/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/libc.so.6",target-name="/lib64/libc.so.6",host-name="
/lib64/libc.so.6",symbols-loaded="0",thread-group="i1"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1",exit-code="0"
*stopped,reason="exited-normally"
(gdb)
got =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linu
x-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread
-group="i1"
=library-loaded,id="/lib64/libm.so.6",target-name="/lib64/libm.so.6",host-name="
/lib64/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib64/libc.so.6",target-name="/lib64/libc.so.6",host-name="
/lib64/libc.so.6",symbols-loaded="0",thread-group="i1"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1",exit-code="0"
*stopped,reason="exited-normally"
(gdb)
FAIL: gdb.mi/mi-start.exp: run to main (unknown output after running)