Fix clean_restart <absolute filename> in the test-cases in gdb.guile.
Tested on x86_64-linux.
set nl "\[\r\n\]+"
# Start with a fresh gdb.
- clean_restart $exefile
+ clean_restart
+ gdb_load $exefile
if ![gdb_guile_runto_main] {
return
# Run various other tests.
-clean_restart $binfile
+clean_restart $::testfile
if ![gdb_guile_runto_main] {
return
return -1
}
-clean_restart ${binfile}-cxx
+clean_restart ${::testfile}-cxx
if ![gdb_guile_runto_main] {
return
proc restart_gdb {exefile} {
global srcdir subdir
- clean_restart $exefile
+ clean_restart
+ gdb_load $exefile
if { ![allow_guile_tests] } {
return 0
proc test_subscript_regression {exefile lang} {
# Start with a fresh gdb.
- clean_restart ${exefile}
+ clean_restart
+ gdb_load ${exefile}
if ![gdb_guile_runto_main ] {
return
}
# Start with a fresh gdb.
-clean_restart ${binfile}
+clean_restart ${::testfile}
gdb_install_guile_utils
gdb_install_guile_module