This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Add call to gdb_exit prior to gdb_start in gdb.cp/ref-params.exp


I've been testing a mep-elf toolchain using the SID simulator.  I found
it necessary to add the call to gdb_exit as indicated in the patch below.
Without this patch, I get 3 passes and 16 unresolved testcases.  With the
patch, I see 14 passes (and no failures or unresolved testcases).

I took a look at invcations of gdb_start in other tests and found
that it is customary to invoke gdb_exit prior to gdb_start.  (It is
not _always_ done, but nearly so.)  Thus it seems to me that the
missing call to gdb_exit in ref-params.exp is merely an oversight.

Comments?

	* gdb.cp/ref-params.exp (gdb_start_again): Invoke `gdb_exit'
	prior to `gdb_start'.

Index: testsuite/gdb.cp/ref-params.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/ref-params.exp,v
retrieving revision 1.3
diff -u -p -r1.3 ref-params.exp
--- testsuite/gdb.cp/ref-params.exp	9 Jan 2007 17:59:12 -0000	1.3
+++ testsuite/gdb.cp/ref-params.exp	13 Jul 2007 23:34:03 -0000
@@ -46,6 +46,7 @@ proc gdb_start_again { text } {
     global binfile
     global srcfile
 
+    gdb_exit
     gdb_start
     gdb_reinitialize_dir $srcdir/$subdir
     gdb_load ${binfile}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]