]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb-add-index: disable debuginfod
authorAaron Merey <amerey@redhat.com>
Sat, 12 Feb 2022 00:28:47 +0000 (19:28 -0500)
committerAaron Merey <amerey@redhat.com>
Fri, 25 Feb 2022 22:30:12 +0000 (17:30 -0500)
commit18694ad5bddc06bea69600d97f048f255e02494f
tree2b421c3ad3939eb38468a06110f56e6fa133fe9b
parent820ed8af6a757408873d8955a2db03b0989fdaeb
gdb-add-index: disable debuginfod

gdb-add-index may trigger debuginfod's first-use notice.  The notice
is misleading in this case.  It instructs the user to modify .gdbinit
in order to permanently enable/disable debuginfod but gdb-add-index
invokes gdb with -nx which ignores .gdbinit.

Additionally debuginfod is not needed for gdb-add-index since the
symbol file is given as an argument and should already be present
locally.

Fix this by disabling debuginfod when gdb-add-index invokes gdb.
gdb/contrib/gdb-add-index.sh