Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Decimal128, printcmds.exp, dfp-exprs.exp
@ 2009-03-20 15:08 Christophe LYON
  2009-03-20 15:36 ` Joseph S. Myers
  0 siblings, 1 reply; 3+ messages in thread
From: Christophe LYON @ 2009-03-20 15:08 UTC (permalink / raw)
  To: gdb

Hi all,

On one of our internal targets, I observe some failures in the GDB 
testsuite in printcmds.exp and dfp-exprs.exp tests.
The failures in printcmds.exp occur only when the target is configured 
as big-endian, while endianness has no influence on the failure in 
dfp-exprs.exp.

More precisely,
* in dfp-exprs.exp:
p (_Decimal128) 3.7df
$89 = 2.00000000000000000000000800002422E+257
(gdb) FAIL: gdb.base/dfp-exprs.exp: p (_Decimal128) 3.7df

* in printcmds.exp:
printf "%DDf\n",1.234567890123456789012345678901234dl
1.234567890123454789012345678901234
(gdb) FAIL: gdb.base/printcmds.exp: printf 
"%DDf\n",1.234567890123456789012345678901234dl

My understanding is that none of these tests uses the underlying target, 
so what can make them fail?

Thanks,

Christophe.


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

* Re: Decimal128, printcmds.exp, dfp-exprs.exp
  2009-03-20 15:08 Decimal128, printcmds.exp, dfp-exprs.exp Christophe LYON
@ 2009-03-20 15:36 ` Joseph S. Myers
  2009-03-20 17:18   ` Christophe LYON
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph S. Myers @ 2009-03-20 15:36 UTC (permalink / raw)
  To: Christophe LYON; +Cc: gdb

On Fri, 20 Mar 2009, Christophe LYON wrote:

> Hi all,
> 
> On one of our internal targets, I observe some failures in the GDB testsuite
> in printcmds.exp and dfp-exprs.exp tests.
> The failures in printcmds.exp occur only when the target is configured as
> big-endian, while endianness has no influence on the failure in dfp-exprs.exp.

Are you sure you are using current GDB sources?  I fixed such failures 
with:

2008-06-27  Joseph Myers  <joseph@codesourcery.com>

        * dfp.c (decimal_convert): Call match_endianness before and after
        conversion.

If you're using current sources, maybe something has broken them again.

-- 
Joseph S. Myers
joseph@codesourcery.com


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

* Re: Decimal128, printcmds.exp, dfp-exprs.exp
  2009-03-20 15:36 ` Joseph S. Myers
@ 2009-03-20 17:18   ` Christophe LYON
  0 siblings, 0 replies; 3+ messages in thread
From: Christophe LYON @ 2009-03-20 17:18 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: gdb

On 20.03.2009 16:35, Joseph S. Myers wrote:
> On Fri, 20 Mar 2009, Christophe LYON wrote:
> 
>> Hi all,
>>
>> On one of our internal targets, I observe some failures in the GDB testsuite
>> in printcmds.exp and dfp-exprs.exp tests.
>> The failures in printcmds.exp occur only when the target is configured as
>> big-endian, while endianness has no influence on the failure in dfp-exprs.exp.
> 
> Are you sure you are using current GDB sources?  I fixed such failures 
> with:
> 
No, I am based on GDB-6.8.
Thanks for the hint.

I have applied your patch and my problem has disappeared.

Thanks and sorry for the noise.

Christophe.


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

end of thread, other threads:[~2009-03-20 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-20 15:08 Decimal128, printcmds.exp, dfp-exprs.exp Christophe LYON
2009-03-20 15:36 ` Joseph S. Myers
2009-03-20 17:18   ` Christophe LYON

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