gdb/debuginfod: Whitespace-only URL should disable debuginfod
authorAaron Merey <amerey@redhat.com>
Wed, 27 Apr 2022 20:41:24 +0000 (16:41 -0400)
committerAaron Merey <amerey@redhat.com>
Mon, 2 May 2022 20:15:06 +0000 (16:15 -0400)
commit95929abb498786d9dce36bb94b6c3f1d63178956
treed0401f4ea63126a7beb6c1a78bb976e29233e099
parent03ada39ea590fec3bd722e9ea776049213da8b58
gdb/debuginfod: Whitespace-only URL should disable debuginfod

Currently debuginfod is disabled when the string of server URLs
is unset or set to be the empty string (via the $DEBUGINFOD_URLS
environment variable or the 'set debuginfod urls' gdb command).

Extend this functionality so that a whitespace-only URL also disables
debuginfod.

Modify a testcase to verify that a whitespace-only URL disables
debuginfod.
gdb/debuginfod-support.c
gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp