[gdb/testsuite] Fix unset of DEBUGINFOD_URLS in default_gdb_init
authorTom de Vries <tdevries@suse.de>
Thu, 1 Apr 2021 06:24:13 +0000 (08:24 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 1 Apr 2021 06:24:13 +0000 (08:24 +0200)
commit84838a61666fbc412119f544e6973ab59dd510a4
tree3be7cd91cc30ac9dba1b6bc9129ddde78a84f74d
parent733f5eea6bde8546a4845416457174c6d716e882
[gdb/testsuite] Fix unset of DEBUGINFOD_URLS in default_gdb_init

In commit cfcbd506fb0 "[gdb/testsuite] Ignore DEBUGINFOD_URLS" I added
unsetting of env(DEBUGINFOD_URLS), but it doesn't work because I forgot to
add :: in front.

Fix this, and rewrite using "unset -nocomplain" instead of unsetenv, which
allows us to drop the "info exists" test.

2021-04-01  Tom de Vries  <tdevries@suse.de>

* lib/gdb.exp (default_gdb_init): Use ::env.  Use unset
-nocomplain ::env(V) instead of unsetenv V.
gdb/testsuite/lib/gdb.exp
This page took 0.024759 seconds and 4 git commands to generate.