Message ID | 20230327115858.5950-3-tdevries@suse.de |
---|---|
State | Committed |
Headers | |
Series | Fix gdb.dwarf2 for remote host | |
Commit Message
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 813b755215e..c0762cbb3a8 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -8740,6 +8740,10 @@ proc readnow { } { # Otherwise, return "". proc have_index { objfile } { + # This proc is mostly used with $binfile, but that gives problems with + # remote host, while using $testfile would work. + # Fix this by reducing $binfile to $testfile. + set objfile [file tail $objfile] set res "" set cmd "maint print objfiles $objfile"