This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Adjust `pc-fp.exp' for ppc64/s390x (PR 12659)
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Tom Tromey <tromey at redhat dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Date: Wed, 01 Aug 2012 00:06:17 -0300
- Subject: Re: [PATCH] Adjust `pc-fp.exp' for ppc64/s390x (PR 12659)
- References: <m3mx2fmxmb.fsf@redhat.com> <m2wr1jbjcb.fsf@igel.home>
On Tuesday, July 31 2012, Andreas Schwab wrote:
> Sergio Durigan Junior <sergiodj@redhat.com> writes:
>
>> 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
>
> I'm getting this:
>
> info register pc fp
> pc 0x8000042c 0x8000042c <main+4>
> fp 0xefae83e4 0xefae83e4
> (gdb) FAIL: gdb.base/pc-fp.exp: info register pc fp
This should also fail using GDB 7.5. Could you please test the
following patch?
Thanks,
--
Sergio
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(:)?( |\t)+${valueof_pc}(( |\t)+${valueof_pc} <.*>)?\[\r\n\]+fp(:)?( |\t)+${valueof_fp}(( |\t)+${valueof_fp})?\[\r\n\]+"