gdb/testsuite: gdb.base/args.exp: use save_vars
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 17 Jun 2021 13:41:58 +0000 (09:41 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 17 Jun 2021 13:41:58 +0000 (09:41 -0400)
commit18b5aadea2de6955ba5818c65ef82c94c6ca5d98
tree1cd24cdf8c99d56706114b35c47cf17aba91cc29
parent82a5082ed3f00b8d7bd1e3810c6eeb4351e35286
gdb/testsuite: gdb.base/args.exp: use save_vars

Use save_vars instead of manually saving/restoring.  This ensures that
if anything throws an error, GDBFLAGS will be correctly restored.

Remove the global GDBFLAGS declaration at the top, it's not necessary.

gdb/testsuite/ChangeLog:

* gdb.base/args.exp: Use save_vars.

Change-Id: I3a45e4fc1635ec0212de2415040f91eecaf4a057
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/args.exp