[PATCH] gdb/testsuite: introduce parse_options procedure

Keith Seitz keiths@redhat.com
Tue May 26 17:45:36 GMT 2020


On 5/26/20 6:02 AM, Simon Marchi via Gdb-patches wrote:
> In the testsuite, I really like when procedures take optional arguments
> using shell-like options that start with dash (for example,
> gdb_test_multiple).  I think this leads to clearer code than using
> parameters with defaults value.

Is this sufficiently more robust than parse_args to warrant two variations
of a similar theme? Can they be merged into one implementation?

Keith



More information about the Gdb-patches mailing list