From: Simon Marchi Date: Mon, 4 Jan 2021 16:43:58 +0000 (-0500) Subject: gdb/testsuite: use clean_restart in gdb.server/solib-list.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a754fbdfa22cf9f56a0ff20e7b5f400daeb4b3e7;p=binutils-gdb.git gdb/testsuite: use clean_restart in gdb.server/solib-list.exp I think this sequence of commands can be replaced by clean_restart, despite what the comment says, as long as we don't use the `binfile` argument to clean_restart. gdb/testsuite/ChangeLog: * gdb.server/solib-list.exp: Use clean_restart. Change-Id: I4930564c50a1865cbffe0d660a4296c9d2158084 --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 36644bb1e47..079814aae0f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-01-04 Simon Marchi + + * gdb.server/solib-list.exp: Use clean_restart. + 2021-01-04 Tom de Vries * gdb.base/morestack.c: Remove printf. diff --git a/gdb/testsuite/gdb.server/solib-list.exp b/gdb/testsuite/gdb.server/solib-list.exp index 3d9adb1e867..c4934ed1416 100644 --- a/gdb/testsuite/gdb.server/solib-list.exp +++ b/gdb/testsuite/gdb.server/solib-list.exp @@ -42,12 +42,7 @@ set interp_system [section_get ${binfile} .interp] verbose -log "system interpreter is: $interp_system" foreach nonstop { 0 1 } { with_test_prefix "non-stop $nonstop" { - - # clean_restart assumes ${objdir}/${subdir}/ which is not applicable - # for ${interp_system}. - gdb_exit - gdb_start - gdb_reinitialize_dir $srcdir/$subdir + clean_restart gdb_load_shlib ${binlibfile} set remote_binfile [gdb_remote_download target $binfile]