gdb-add-index always generates an error when libdebuginfod wasn't compiled in
authorAaron Merey <amerey@redhat.com>
Tue, 5 Jul 2022 22:11:49 +0000 (18:11 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 15 Jul 2022 21:11:23 +0000 (17:11 -0400)
commit92b0a182fe00da3022516f3cb8f815d527d73652
tree653dba1c1d7bed4a237cc49d70a8e033184cbbc1
parent13c3e10f98ff9b89c12161e85bd576ea77460a83
gdb-add-index always generates an error when libdebuginfod wasn't compiled in

gdb-add-index runs gdb with -iex 'set debuginfod enabled off'.  If gdb
is not compiled against libdebuginfod this causes an unnecessary error
message to be printed to stderr indicating that gdb was not built with
debuginfod support.

Fix this by changing the 'set debuginfod enabled off' command to a
no-op when gdb isn't built with libdebuginfod.
gdb/debuginfod-support.c