aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAaron Merey <amerey@redhat.com>2022-02-11 19:28:47 -0500
committerAaron Merey <amerey@redhat.com>2022-02-25 17:30:12 -0500
commit18694ad5bddc06bea69600d97f048f255e02494f (patch)
tree2b421c3ad3939eb38468a06110f56e6fa133fe9b /gdb
parent820ed8af6a757408873d8955a2db03b0989fdaeb (diff)
downloadgdb-18694ad5bddc06bea69600d97f048f255e02494f.zip
gdb-18694ad5bddc06bea69600d97f048f255e02494f.tar.gz
gdb-18694ad5bddc06bea69600d97f048f255e02494f.tar.bz2
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.
Diffstat (limited to 'gdb')
-rwxr-xr-xgdb/contrib/gdb-add-index.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh
index 0ff943d..591f32b 100755
--- a/gdb/contrib/gdb-add-index.sh
+++ b/gdb/contrib/gdb-add-index.sh
@@ -112,6 +112,7 @@ rm -f $tmp_files
trap "rm -f $tmp_files" 0
$GDB --batch -nx -iex 'set auto-load no' \
+ -iex 'set debuginfod enabled off' \
-ex "file $file" -ex "save gdb-index $dwarf5 $dir" || {
# Just in case.
status=$?