From 4d836c0979e67c98286635aacedee092b643ccbf Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 19 Apr 2010 03:13:07 +0000 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 8 ++++++++ gdb/testsuite/gdb.base/solib-display.exp | 14 +++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f955cb8253c..3f86fd5dc98 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2010-04-19 Jan Kratochvil + + * 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 PR breakpoints/8554. diff --git a/gdb/testsuite/gdb.base/solib-display.exp b/gdb/testsuite/gdb.base/solib-display.exp index d03edf8dd1a..42a48d01e4c 100644 --- a/gdb/testsuite/gdb.base/solib-display.exp +++ b/gdb/testsuite/gdb.base/solib-display.exp @@ -40,7 +40,8 @@ set lib_flags [list debug] # Binary file. set testfile "solib-display-main" 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}] if [get_compiler_info ${binfile}] { @@ -53,10 +54,7 @@ if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != "" return -1 } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +clean_restart ${executable} if ![runto_main] then { 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]" \ ".*Breakpoint.* at .*" gdb_test "continue" "6: a_static = 46\\r\\n5: a_local = 45\\r\\n4: main_global = 44\\r\\n.*" - -gdb_exit - -return 0 - - -- 2.30.2