From 93084bcabb5f23c509734a202f5a45201b723657 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 17 Feb 2011 05:21:29 +0000 Subject: [PATCH] dw2-ranges.exp: simplify using clean_restart gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-ranges.exp: Simplify using clean_restart. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.dwarf2/dw2-ranges.exp | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5af639ddc89..e3315ad07e6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-02-17 Joel Brobecker + + * gdb.dwarf2/dw2-ranges.exp: Simplify using clean_restart. + 2011-02-16 Pedro Alves * collection.c (globalarr3): New global. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp index 4fa3d020c45..d3b8fe57c41 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 -- 2.30.2