mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
gdb/testsuite/
* gdb.base/solib-display.exp: Replace gdb_exit, gdb_start, gdb_reinitialize_dir and gdb_load by clean_restart. Remove trailing gdb_exit and return. (executable): New variable. (binfile): Use it.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2010-04-19 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/solib-display.exp: Replace gdb_exit, gdb_start,
|
||||||
|
gdb_reinitialize_dir and gdb_load by clean_restart. Remove trailing
|
||||||
|
gdb_exit and return.
|
||||||
|
(executable): New variable.
|
||||||
|
(binfile): Use it.
|
||||||
|
|
||||||
2010-04-19 Pedro Alves <pedro@codesourcery.com>
|
2010-04-19 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
PR breakpoints/8554.
|
PR breakpoints/8554.
|
||||||
|
@ -40,7 +40,8 @@ set lib_flags [list debug]
|
|||||||
# Binary file.
|
# Binary file.
|
||||||
set testfile "solib-display-main"
|
set testfile "solib-display-main"
|
||||||
set srcfile ${srcdir}/${subdir}/${testfile}.c
|
set srcfile ${srcdir}/${subdir}/${testfile}.c
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
set executable ${testfile}
|
||||||
|
set binfile ${objdir}/${subdir}/${executable}
|
||||||
set bin_flags [list debug shlib=${binfile_lib}]
|
set bin_flags [list debug shlib=${binfile_lib}]
|
||||||
|
|
||||||
if [get_compiler_info ${binfile}] {
|
if [get_compiler_info ${binfile}] {
|
||||||
@ -53,10 +54,7 @@ if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
|
|||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
clean_restart ${executable}
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
fail "Can't run to main"
|
fail "Can't run to main"
|
||||||
@ -107,9 +105,3 @@ gdb_test "" "6: a_static = 46\\r\\n4: main_global = 44\\r\\n.*"
|
|||||||
gdb_test "break [gdb_get_line_number "break here" ${testfile}.c]" \
|
gdb_test "break [gdb_get_line_number "break here" ${testfile}.c]" \
|
||||||
".*Breakpoint.* at .*"
|
".*Breakpoint.* at .*"
|
||||||
gdb_test "continue" "6: a_static = 46\\r\\n5: a_local = 45\\r\\n4: main_global = 44\\r\\n.*"
|
gdb_test "continue" "6: a_static = 46\\r\\n5: a_local = 45\\r\\n4: main_global = 44\\r\\n.*"
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
|
|
||||||
return 0
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user