This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 5/6] testsuite: Introduce $inferior_spawn_id
- From: Pedro Alves <palves at redhat dot com>
- To: Antoine Tremblay <antoine dot tremblay at ericsson dot com>, Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 21 Apr 2015 19:25:09 +0100
- Subject: Re: [PATCH 5/6] testsuite: Introduce $inferior_spawn_id
- Authentication-results: sourceware.org; auth=none
- References: <1424699660-11727-1-git-send-email-palves at redhat dot com> <1424699660-11727-6-git-send-email-palves at redhat dot com> <867fv7xodw dot fsf at gmail dot com> <54F04A2B dot 5 at redhat dot com> <54F05E34 dot 7070401 at gmail dot com> <54F06341 dot 5080501 at redhat dot com> <552FE97F dot 4070400 at ericsson dot com> <552FEDFE dot 2000402 at redhat dot com>
On 04/16/2015 06:14 PM, Pedro Alves wrote:
> On 04/16/2015 05:55 PM, Antoine Tremblay wrote:
>> I have a question regarding noinferiorio and it's future usage...
>>
>> As the condition with noinferiorio in interrupt.exp is now :
>>
>> if {[target_info exists gdb,noinferiorio] && $inferior_spawn_id ==
>> $gdb_spawn_id}
>>
>> noinferiorio is effectively bypassed when we are using gdbserver, even
>> as noinferirorio is true.
>>
>> But what if the board or simulator really can't handle io at all, and
>> that setvbuf would not work.. then there is no option to disable io
>> tests in that case ?
>
> Hmm, but why would such a board be using gdbserver-support.exp? Can you
> expand a little?
>
>>
>> Is the intention to remove noinferiorio from gdbserver-base.exp and keep
>> the tests with the if {[target_info exists gdb,noinferiorio]} check ?
>
> The idea was make all tests that rely on inferior io make use
> of $inferior_spawn_id, like interrupt.exp. My thought was that once that
> is done, we can either remove noinferiorio from gdbserver-base.exp or
> leave it, it wouldn't matter, as for gdbserver testing, would be
> always $inferior_spawn_id != $gdb_spawn_id. But it sounds like you have
> some environment that may make that troublesome. I'll need to know more
> about it though.
>
FYI, I now finished the transition to inferior_spawn_id in the
whole testsuite, and posted it as a series here:
https://sourceware.org/ml/gdb-patches/2015-04/msg00776.html
the last patch removes noinferiorio from gdbserver-base.exp.
Thanks,
Pedro Alves