Re: [PATCH v4 8/9] gdb/testsuite: support passing inferior arguments with native-gdbserver board

Simon Marchi
2020-05-25T15:14:16Z

On 2020-05-19 2:46 p.m., Tom de Vries wrote:
> On 19-05-2020 19:22, Simon Marchi wrote:
>> So I'd keep "inferior_args",
>> although we can make it accept a list instead of a string, and apply the
>> treatment you have shown above.
>>
>> Or, I like the procedures that accept optional arguments using shell-like switches,
>> so we could do:
>>
>> set inferior_args [list a b c]
>> gdb_run_cmd -inferior-args $inferior_args
>>
>> This is untested, I always forget how tcl converts between strings and lists
>> exactly, but you should see the point. That makes it easier to add other parameters
>> in the future.
>
> Yep, sounds good to me.

I think I'll do that, but as a separate change. So I'll merge the series as-is, to get
the fix and test in, and then look into adding the `-inferior-args` option to gdb_run_cmd
and friends.

Simon