This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] dw2-ranges.exp: simplify using clean_restart
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 17 Feb 2011 09:34:10 +0400
- Subject: [commit] dw2-ranges.exp: simplify using clean_restart
Just noticed this while looking at this testcase...
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-ranges.exp: Simplify using clean_restart.
Tested on x86_64-linux, checked in.
---
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 5af639d..e3315ad 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-17 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.dwarf2/dw2-ranges.exp: Simplify using clean_restart.
+
2011-02-16 Pedro Alves <pedro@codesourcery.com>
* collection.c (globalarr3): New global.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
index d8dbb5f..d87f197 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
--
1.7.1