diff options
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 3cdc39d..943112f 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -5272,9 +5272,7 @@ proc default_gdb_init { test_file_name } { # If DEBUGINFOD_URLS is set, gdb will try to download sources and # debug info for f.i. system libraries. Prevent this. - if { [info exists env(DEBUGINFOD_URLS)] } { - unsetenv DEBUGINFOD_URLS - } + unset -nocomplain ::env(DEBUGINFOD_URLS) # Ensure that GDBHISTFILE and GDBHISTSIZE are removed from the # environment, we don't want these modifications to the history |