[gdb/testsuite] Simplify gdb.base/unwind-on-each-insn.exp.tcl
authorTom de Vries <tdevries@suse.de>
Fri, 27 Jan 2023 21:01:16 +0000 (22:01 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 27 Jan 2023 21:01:16 +0000 (22:01 +0100)
commitd9195131530370f56e78a2b084928c11da536d9e
tree4e5ca17eccd48dc8e2a4c706001a0cdfe82e0412
parentf6210497fd7ff8f71c1421abb3dacdd4556dd097
[gdb/testsuite] Simplify gdb.base/unwind-on-each-insn.exp.tcl

Recent commit 1d98e564c97 ("[gdb/testsuite] Add
gdb.base/unwind-on-each-insn-{amd64,i386}.exp") broke commit eb015bf86b6
("[gdb/testsuite] Avoid using .eh_frame in gdb.base/unwind-on-each-insn.exp"),
in the sense that gdb.base/unwind-on-each-insn.exp no longer uses
-fno-asynchronous-unwind-tables, due to trying to concatenate two lists using:
...
    lappend srcfile2_flags $nodebug_flags
...
which should instead be:
...
    lappend srcfile2_flags {*}$nodebug_flags
...

Fix this by simplifying gdb.base/unwind-on-each-insn.exp.tcl, completely
leaving the responsibility to set srcfile_flags and srcfile2_flags to each
includer.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/unwind-on-each-insn-amd64.exp
gdb/testsuite/gdb.base/unwind-on-each-insn-i386.exp
gdb/testsuite/gdb.base/unwind-on-each-insn.exp
gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl