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]

Testsuite failures in gdb.base/callfuncs.exp


This fixes these testsuite failures on ia64:

FAIL: gdb.base/callfuncs.exp: gdb function calls preserve register contents
FAIL: gdb.base/callfuncs.exp: continue after stop in call dummy preserves register contents
FAIL: gdb.base/callfuncs.exp: return after stop in call dummy preserves register contents

The problem is that the bspstore register is specially tied with the bsp
register, and this can't be controlled by gdb.

Andreas.

2007-01-31  Andreas Schwab  <schwab@suse.de>

	* gdb.base/callfuncs.exp (do_get_all_registers): Filter out
	bspstore register on ia64.

--- gdb/testsuite/gdb.base/callfuncs.exp.~1.18.~	2007-01-10 11:18:57.000000000 +0100
+++ gdb/testsuite/gdb.base/callfuncs.exp	2007-01-31 13:28:38.000000000 +0100
@@ -248,6 +248,11 @@ proc do_get_all_registers { } {
     gdb_expect {
 	-re "info all-registers\r\n(.*)$gdb_prompt $" {
 	    set all_registers_content $expect_out(1,string)
+	    if [istarget "ia64-*-*"] {
+		# Filter out bspstore which is specially tied to bsp,
+		# giving spurious differences.
+		regsub {\nbspstore[^\n]*\n} $all_registers_content "\n" all_registers_content
+	    }
 	}
 	default {}
     }

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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