aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-02-17 05:21:29 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-02-17 05:21:29 +0000
commit93084bcabb5f23c509734a202f5a45201b723657 (patch)
tree745f21916708b54a337cfdecbf1dee29935a3ec9 /gdb/testsuite/gdb.dwarf2
parent946ebb0d70392191231816941cdd0a8ebd0e4e9b (diff)
downloadgdb-93084bcabb5f23c509734a202f5a45201b723657.zip
gdb-93084bcabb5f23c509734a202f5a45201b723657.tar.gz
gdb-93084bcabb5f23c509734a202f5a45201b723657.tar.bz2
dw2-ranges.exp: simplify using clean_restart
gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-ranges.exp: Simplify using clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-ranges.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
index 4fa3d02..d3b8fe5 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
@@ -45,10 +45,7 @@ if {[gdb_compile "${objfile} ${objfile2} ${objfile3}" "${binfile}" executable {}
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
# Test also objfile->psymtabs_addrmap relocations for -fPIE -pie builds below.
# On some targets it may possibly fail but the program is being started only