This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] gdb.python/py-value.exp: Use clean_restart.
- From: dje at google dot com
- To: gdb-patches at sourceware dot org
- Date: Thu, 06 Sep 2012 10:53:15 -0700
- Subject: [commit] gdb.python/py-value.exp: Use clean_restart.
Hi.
fyi, I committed this.
2012-09-06 Doug Evans <dje@google.com>
* gdb.python/py-value.exp: Use clean_restart.
Index: gdb.python/py-value.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-value.exp,v
retrieving revision 1.29
diff -u -p -r1.29 py-value.exp
--- gdb.python/py-value.exp 2 Aug 2012 15:59:59 -0000 1.29
+++ gdb.python/py-value.exp 6 Sep 2012 17:51:32 -0000
@@ -367,10 +367,7 @@ proc test_subscript_regression {exefile
global srcdir subdir
# Start with a fresh gdb.
- gdb_exit
- gdb_start
- gdb_reinitialize_dir $srcdir/$subdir
- gdb_load ${exefile}
+ clean_restart ${exefile}
if ![runto_main ] then {
perror "couldn't run to breakpoint"
@@ -467,10 +464,7 @@ build_inferior "${binfile}-cxx" "c++"
# Start with a fresh gdb.
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${binfile}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }