Change gdb.reverse to use clean_restart more consistently.
require supports_reverse
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-
standard_testfile sigall-reverse.c
set precsave [standard_output_file sigall.precsave]
}
}
-gdb_load $binfile
+clean_restart $binfile
runto gen_ABRT
require supports_reverse
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
}
}
-gdb_load $binfile
+clean_restart $binfile
runto gen_ABRT
return -1
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-
# Note: The test previously did "set debug-file-directory" to (try to)
# ensure the debug info for the dynamic loader and libc weren't found.
# This doesn't work if the debug info is in the .debug subdirectory.
# and is no longer attempted. Instead, the test does not make assumptions
# about whether the debug info is present or not.
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart $binfile
gdb_load_shlib $library1
gdb_load_shlib $library2
return -1
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-
# Note: The test previously did "set debug-file-directory" to (try to)
# ensure the debug info for the dynamic loader and libc weren't found.
# This doesn't work if the debug info is in the .debug subdirectory.
# and is no longer attempted. Instead, the test does not make assumptions
# about whether the debug info is present or not.
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart $binfile
gdb_load_shlib $library1
gdb_load_shlib $library2