[gdb/testsuite] Allow procs with default value args in with_override
authorTom de Vries <tdevries@suse.de>
Tue, 13 Jun 2023 10:24:17 +0000 (12:24 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 13 Jun 2023 10:24:17 +0000 (12:24 +0200)
commitcc313a1d84d3b76d5a4f6208d1aa6c0e99c0d132
tree11fb8781aeed359df1433156514db27203310416
parent40bea10383b36fbe451d91ed0513792c399de1a6
[gdb/testsuite] Allow procs with default value args in with_override

Currently proc with_override does not work with procs with default value args.

Fix this, and add a test-case excercising this scenario.

Tested on x86_64-linux.
gdb/testsuite/gdb.testsuite/with-override.exp [new file with mode: 0644]
gdb/testsuite/lib/gdb.exp