mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
Use clean_restart in gdb.reverse
Change gdb.reverse to use clean_restart more consistently.
This commit is contained in:
@ -20,10 +20,6 @@ if [target_info exists gdb,nosignals] {
|
||||
|
||||
require supports_reverse
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
|
||||
standard_testfile sigall-reverse.c
|
||||
set precsave [standard_output_file sigall.precsave]
|
||||
|
||||
@ -145,7 +141,7 @@ proc test_one_sig_reverse {prevsig} {
|
||||
}
|
||||
}
|
||||
|
||||
gdb_load $binfile
|
||||
clean_restart $binfile
|
||||
|
||||
runto gen_ABRT
|
||||
|
||||
|
@ -20,10 +20,6 @@ if [target_info exists gdb,nosignals] {
|
||||
|
||||
require supports_reverse
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
|
||||
standard_testfile
|
||||
|
||||
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
|
||||
@ -151,7 +147,7 @@ proc test_one_sig_reverse {prevsig} {
|
||||
}
|
||||
}
|
||||
|
||||
gdb_load $binfile
|
||||
clean_restart $binfile
|
||||
|
||||
runto gen_ABRT
|
||||
|
||||
|
@ -53,11 +53,6 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable \
|
||||
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.
|
||||
@ -65,8 +60,7 @@ gdb_start
|
||||
# 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
|
||||
|
||||
|
@ -45,11 +45,6 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt
|
||||
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.
|
||||
@ -57,8 +52,7 @@ gdb_start
|
||||
# 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
|
||||
|
||||
|
Reference in New Issue
Block a user