mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
Use clean_restart in gdb.cp
Change gdb.cp to use clean_restart more consistently.
This commit is contained in:
@ -46,9 +46,7 @@ proc get_func_address { func } {
|
|||||||
|
|
||||||
# Load the file as an executable; GDB should assign non-overlapping
|
# Load the file as an executable; GDB should assign non-overlapping
|
||||||
# section offsets.
|
# section offsets.
|
||||||
gdb_exit
|
clean_restart
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_file_cmd ${binfile}
|
gdb_file_cmd ${binfile}
|
||||||
|
|
||||||
# Find the interesting functions. We go to a little effort to find
|
# Find the interesting functions. We go to a little effort to find
|
||||||
@ -118,9 +116,7 @@ if { $func1_sec == $func2_sec } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Now start a clean GDB, for add-symbol-file tests.
|
# Now start a clean GDB, for add-symbol-file tests.
|
||||||
gdb_exit
|
clean_restart
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
|
|
||||||
gdb_test "add-symbol-file ${binfile} 0 -s ${func1_sec} 0x10000 -s ${func2_sec} 0x20000" \
|
gdb_test "add-symbol-file ${binfile} 0 -s ${func1_sec} 0x10000 -s ${func2_sec} 0x20000" \
|
||||||
"Reading symbols from .*${testfile}\\.o\\.\\.\\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)" \
|
"Reading symbols from .*${testfile}\\.o\\.\\.\\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)" \
|
||||||
|
@ -28,8 +28,6 @@ if {[build_executable $testfile.exp $testfile $srcfile {debug c++}] == -1} {
|
|||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
|
|
||||||
proc gdb_start_again { text } {
|
proc gdb_start_again { text } {
|
||||||
global binfile
|
global binfile
|
||||||
global srcfile
|
global srcfile
|
||||||
|
Reference in New Issue
Block a user