mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Use clean_restart in gdb.objc
Change gdb.objc to use clean_restart more consistently.
This commit is contained in:
@ -70,18 +70,9 @@ proc deduce_language_of_main {} {
|
||||
}
|
||||
|
||||
proc do_objc_tests {} {
|
||||
global subdir
|
||||
global srcdir
|
||||
global binfile
|
||||
global gdb_prompt
|
||||
|
||||
|
||||
# Start with a fresh gdb.
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load $binfile
|
||||
clean_restart $binfile
|
||||
|
||||
deduce_language_of_main
|
||||
}
|
||||
|
@ -28,19 +28,8 @@ if {[gdb_compile_objc "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [
|
||||
}
|
||||
|
||||
proc do_objc_tests {} {
|
||||
global subdir
|
||||
global srcdir
|
||||
global binfile
|
||||
global gdb_prompt
|
||||
|
||||
|
||||
# Start with a fresh gdb.
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load $binfile
|
||||
|
||||
clean_restart $binfile
|
||||
}
|
||||
|
||||
do_objc_tests
|
||||
|
@ -28,19 +28,8 @@ if {[gdb_compile_objc "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [
|
||||
}
|
||||
|
||||
proc do_objc_tests {} {
|
||||
global subdir
|
||||
global srcdir
|
||||
global binfile
|
||||
global gdb_prompt
|
||||
|
||||
|
||||
# Start with a fresh gdb.
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load $binfile
|
||||
|
||||
clean_restart $binfile
|
||||
}
|
||||
|
||||
do_objc_tests
|
||||
|
@ -57,11 +57,7 @@ proc test_float_rejected {} {
|
||||
test_print_reject "p 1.1ll"
|
||||
}
|
||||
|
||||
# Start with a fresh gdb.
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
clean_restart
|
||||
|
||||
if [set_lang_objc] {
|
||||
test_float_accepted
|
||||
|
Reference in New Issue
Block a user