binutils-gdb/gdb/testsuite/gdb.btrace
Simon Marchi 246aecb1cd gdb/testsuite: make gdb_breakpoint, runto and runto_main use parse_args
In preparation to adding an option with argument to runto, change these
procs to use parse_args to manage their args (variable arguments).
These three procs have to be converted at the same time, because they
pass args to each other.

I would have like to allow passing options mixed with non-option
arguments, to allow:

  gdb_breakpoint -qualified the_function

But that would be a larger and more difficult change, so we'll have to
stick having options after, like this:

  gdb_breakpoint the_function -qualified

Change all callers that do use options to add the leading dash.

This patch removes the "last one wins" aspect of the message/no-message
options in gdb_breakpoint and runto, but I don't think it's important.
I don't think there is actually a spot that passes both.  I added some
checks in those procs to ensure that.

Change-Id: I1500c60c4b1705ad5cd982d9324b627900ce411b
Reviewed-By: Tankut Baris Aktemur <TankutBaris.Aktemur@amd.com>
2026-06-19 15:31:24 -04:00
..
buffer-size.exp
cpu.exp
data.c
data.exp
delta.exp
dlopen-dso.c
dlopen.c
dlopen.exp
enable-new-thread.c
enable-new-thread.exp
enable-running.c
enable-running.exp
enable.c
enable.exp
event-tracing-gap.c
event-tracing-gap.exp
event-tracing.exp
exception.cc
exception.exp [gdb] Drop executable mode in some files 2026-06-04 22:06:20 +02:00
function_call_history.c
function_call_history.exp
gcore.exp
i386-ptwrite.S
i686-record_goto.S
i686-tailcall-only.S
i686-tailcall.S
instruction_history.c
instruction_history.exp
instruction_history.S
multi-inferior.c
multi-inferior.exp
multi-thread-step.c
multi-thread-step.exp
nohist.exp
non-stop.c
non-stop.exp
null-deref.c
ptwrite.c
ptwrite.exp
reconnect.c
reconnect.exp
record_goto-step.exp
record_goto.c
record_goto.exp
rn-dl-bind.c
rn-dl-bind.exp gdb/testsuite: make gdb_breakpoint, runto and runto_main use parse_args 2026-06-19 15:31:24 -04:00
segv.c
segv.exp
step.exp
stepi.exp
tailcall-only.c
tailcall-only.exp
tailcall.c
tailcall.exp
tsx.c
tsx.exp
unknown_functions.c
unknown_functions.exp
vdso.c
vdso.exp
x86-tsx.S
x86_64-ptwrite.S
x86_64-record_goto.S
x86_64-tailcall-only.S
x86_64-tailcall.S