+2021-05-27 Tom de Vries <tdevries@suse.de>
+
+ PR testsuite/27921
+ * gdb.dwarf2/gdb-index.exp (add_gdb_index): Rename to ...
+ (local_add_gdb_index): ... this.
+
2021-05-21 Tom de Vries <tdevries@suse.de>
PR testsuite/25047
# PROGRAM is assumed to be the output of standard_output_file.
# Returns the path of the program or "" if there is a failure.
# If there is a failure it will have already been logged.
+# Use local prefix to prevent overriding add_gdb_index from lib/gdb.exp.
-proc add_gdb_index { program } {
+proc local_add_gdb_index { program } {
set index_file ${program}.gdb-index
set dir [file dirname ${program}]
set filename [file tail ${program}]
set binfile_with_index $binfile
}
-re "Psymtabs.*${gdb_prompt} $" {
- set binfile_with_index [add_gdb_index $binfile]
+ set binfile_with_index [local_add_gdb_index $binfile]
if { ${binfile_with_index} == "" } {
return -1
}