This is the mail archive of the 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]

Re: [rfa/testsuite] more selftest.exp tweaking

On Wed, 15 Jan 2003 09:21:59 -0500, Fernando Nasser <> said:

> David, it is approved but please change the comment to state which
> compiler version you've seem this order.

Thanks, will do.

> P.S.: What I am hoping is that one day in the future we can get rid
> of some cases for very old compilers.  The comments will make it
> easier.  This is not a serious enough condition for adding an 'if'
> on the compiler version, me thinks...

No.  Unfortunately, I think that this particular problem will get
worse with future compilers, not better: instruction reordering by
compilers will only increase as optimizers get trickier.

Committed; patch is below.

David Carlton

2003-01-15  David Carlton  <>

	* gdb.base/selftest.exp (do_steps_and_nexts): Allow gdb_sysroot.

Index: selftest.exp
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/selftest.exp,v
retrieving revision 1.6
diff -u -p -r1.6 selftest.exp
--- selftest.exp	23 Dec 2002 16:56:25 -0000	1.6
+++ selftest.exp	15 Jan 2003 17:32:33 -0000
@@ -170,6 +170,12 @@ proc do_steps_and_nexts {} {
 		set description "step over current_directory initialization"
 		set command "step"
+	    -re ".*gdb_sysroot = .*$gdb_prompt $" {
+		# NOTE: carlton/2003-01-15: More optimization reordering,
+		# observed on GCC 3.1.
+		set description "step over gdb_sysroot initialization"
+		set command "step"
+	    }
 	    -re "\[ \t\]+\{\r\n$gdb_prompt $" {
 		setup_xfail "mips-*-irix5*"
 		fail "$description ended up at odd location"

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