Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Adjust `pc-fp.exp' for ppc64/s390x (PR 12659)
@ 2012-07-31 21:26 Sergio Durigan Junior
  2012-07-31 23:29 ` Andreas Schwab
  2012-08-01  8:46 ` Pedro Alves
  0 siblings, 2 replies; 22+ messages in thread
From: Sergio Durigan Junior @ 2012-07-31 21:26 UTC (permalink / raw)
  To: GDB Patches; +Cc: Tom Tromey, Jan Kratochvil

While regtesting 7.4 against 7.5 branch on ppc64/s390x RHEL 6.3, I
noticed this failure.  The patch which introduced this failure was
committed because of:

      http://sourceware.org/bugzilla/show_bug.cgi?id=12659

On x86*, the output of `info register pc fp' is:

    info register pc fp
    pc: 0x400520
    fp: 0x7fffffffc490
    (gdb) PASS: gdb.base/pc-fp.exp: info register pc fp

On ppc64/s390x, it is:

    info register pc fp
    pc             0x10000658       0x10000658 <main+20>
    fp: 0xfffffffd120
    (gdb) FAIL: gdb.base/pc-fp.exp: info register pc fp

Since this difference in the output does not seem to be an error itself,
the patch below just adjusts the testcase to match this kind of output
as well.  It does not fail on x86*.

OK?

-- 
Sergio

gdb/testsuite:
2012-07-31  Sergio Durigan Junior  <sergiodj@redhat.com>

	PR gdb/12659:
	Adjust testcase for PPC64/s390x architectures.
	* gdb.base/pc-fp.exp: Match different output for `info register pc
	fp' on PPC64/s390x architectures.

Index: src/gdb/testsuite/gdb.base/pc-fp.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.base/pc-fp.exp
+++ src/gdb/testsuite/gdb.base/pc-fp.exp
@@ -66,4 +66,4 @@ gdb_test "info register \$fp" "${valueof
 # Regression test for
 # http://sourceware.org/bugzilla/show_bug.cgi?id=12659
 gdb_test "info register pc fp" \
-    "pc: ${valueof_pc}\[\r\n\]+fp: ${valueof_fp}\[\r\n\]+"
+    "pc(:)?.*${valueof_pc}(.*${hex} <.*>)?\[\r\n\]+fp: ${valueof_fp}\[\r\n\]+"


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2012-08-28  9:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-31 21:26 [PATCH] Adjust `pc-fp.exp' for ppc64/s390x (PR 12659) Sergio Durigan Junior
2012-07-31 23:29 ` Andreas Schwab
2012-08-01  3:06   ` Sergio Durigan Junior
2012-08-01  9:22     ` Andreas Schwab
2012-08-01  8:46 ` Pedro Alves
2012-08-01 19:41   ` Ulrich Weigand
2012-08-01 19:47     ` Sergio Durigan Junior
2012-08-01 20:20     ` info registers output Pedro Alves
2012-08-01 20:49       ` Ulrich Weigand
2012-08-01 20:55         ` Sergio Durigan Junior
2012-08-27 17:41         ` Pedro Alves
2012-08-28  0:41           ` Ulrich Weigand
2012-08-28  9:07             ` Pedro Alves
2012-08-01 19:52   ` [PATCH] Adjust `pc-fp.exp' for ppc64/s390x (PR 12659) Tom Tromey
2012-08-01 20:23     ` Pedro Alves
2012-08-01 20:49       ` Sergio Durigan Junior
2012-08-01 21:44         ` Pedro Alves
2012-08-01 22:03         ` Andreas Schwab
2012-08-01 23:40           ` Sergio Durigan Junior
2012-08-02  9:06             ` Pedro Alves
2012-08-02 20:38               ` Sergio Durigan Junior
2012-08-08 11:57   ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox