[commit] gdb.python/py-value.exp: Use clean_restart.

dje@google.com dje@google.com
Thu Sep 6 17:53:00 GMT 2012


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 }



More information about the Gdb-patches mailing list