gdb/testsuite/dwarf: use options for rnglists/loclists procs
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 30 Aug 2021 15:20:59 +0000 (11:20 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 1 Oct 2021 02:21:56 +0000 (22:21 -0400)
commit46a5b75b37853b30963d7399e18b2124e6d129e2
treea011d55ff6482845641406890881edaf48cef79c
parentc5dfcc218832f26e7ecefa6c44a2b350c605148f
gdb/testsuite/dwarf: use options for rnglists/loclists procs

Change how rnglists and loclists procs to align them with how procs for
aranges (and other things in the DWARF assembler) work.  Instead of
using "args" (variable number of parameters in TCL) and command-line
style option arguments, use one leading "option" parameters, used as a
kind of key/value dictionary of options parsed using `parse_options`.

Change-Id: I63e60d17ae16a020ce4d6de44baf3d152ea42a1a
gdb/testsuite/gdb.dwarf2/dw2-zero-range.exp
gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp
gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp
gdb/testsuite/gdb.dwarf2/loclists-start-end.exp
gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp
gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp
gdb/testsuite/lib/dwarf.exp