[gdb/testsuite] Use set in lmap in gdb.dwarf2/dw2-abs-hi-pc.exp
authorTom de Vries <tdevries@suse.de>
Tue, 2 May 2023 15:37:58 +0000 (17:37 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 2 May 2023 15:37:58 +0000 (17:37 +0200)
commit69330acb2014b3b520206f53a244815226897f9b
treed6d0c628d73a8738c11921a9b58c6fe9aead4524
parenta047f82b3c5e34072f1ca77af486a77a744ccdd5
[gdb/testsuite] Use set in lmap in gdb.dwarf2/dw2-abs-hi-pc.exp

In gdb.dwarf2/dw2-abs-hi-pc.exp we do:
...
set sources [lmap i $sources { expr { "$srcdir/$subdir/$i" } }]
...

The use of expr is not idiomatic.  Fix this by using set instead:
...
set sources [lmap i $sources { set tmp $srcdir/$subdir/$i }]
...

Reported-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Andreas Schwab <schwab@suse.de>
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp