[PATCH 4/4] gdb/testsuite: gdb.base/args.exp: add KFAIL for native-extended-gdbserver
Simon Marchi
simon.marchi@efficios.com
Thu Jun 17 13:41:34 GMT 2021
On 2021-06-17 6:35 a.m., Pedro Alves wrote:
> On 2021-06-16 8:37 p.m., Simon Marchi via Gdb-patches wrote:
>> + # Start GDB just to see if we are using the native or extended-remote target.
>> + clean_restart
>> + set single_quotes_newline_kfail [gdb_is_target_remote]
>> +
>
> You don't need to do that. You can check
>
> if {[target_info exists gdb_protocol]
> && ([target_info gdb_protocol] == "remote"
> || [target_info gdb_protocol] == "extended-remote")} {
Oh, right. The "remote" case is not applicable here due to the nature
of the test, so I'll just check for extended-remote:
set single_quotes_newline_kfail \
[expr { [target_info exists gdb_protocol] \
&& [target_info gdb_protocol] == "extended-remote" }]
I'll push with that fixed.
Simon
More information about the Gdb-patches
mailing list