This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: breakpoints/1321: GDB: problem with FPU
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 6 Aug 2003 13:08:00 -0000
- Subject: Re: breakpoints/1321: GDB: problem with FPU
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR breakpoints/1321; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: sana@stl.sarov.ru
Cc: gdb-gnats@sources.redhat.com, miwako.tokugawa@intel.com
Subject: Re: breakpoints/1321: GDB: problem with FPU
Date: Wed, 6 Aug 2003 09:05:45 -0400
On Wed, Aug 06, 2003 at 05:39:30AM -0000, sana@stl.sarov.ru wrote:
>
> >Number: 1321
> >Category: breakpoints
> >Synopsis: GDB: problem with FPU
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: unassigned
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Wed Aug 06 05:48:00 UTC 2003
> >Closed-Date:
> >Last-Modified:
> >Originator: sana@stl.sarov.ru
> >Release: unknown-1.0
> >Organization:
> >Environment:
> 32 bit Linux, RH7.2
> >Description:
> Strange problem with GDB on RH7.2 only.
>
> Very simple test is (real failed tests are more complex but this simple test reproduces situation):
>
> program attribute_save
> real r
> i = 1
> r = 2.0
> print *,r
> end
>
> Assembler is (interesting fragment):
>
> 08049528 <MAIN__>:
> 8049528: 55 push %ebp
> 8049529: 8b ec mov %esp,%ebp
> 804952b: 83 ec 03 sub $0x3,%esp
> 804952e: 83 e4 f8 and $0xfffffff8,%esp
> 8049531: 83 c4 04 add $0x4,%esp
> 8049534: 83 ec 24 sub $0x24,%esp
> 8049537: c7 05 ec 38 0a 08 01 movl $0x1,0x80a38ec
> 804953e: 00 00 00
> 8049541: d9 05 b0 81 09 08 flds 0x80981b0
> 8049547: d9 1d f0 38 0a 08 fstps 0x80a38f0
> 804954d: c7 45 dc 00 00 00 00 movl $0x0,0xffffffdc(%ebp)
> 8049554: d9 05 f0 38 0a 08 flds 0x80a38f0
> 804955a: d9 1d e8 38 0a 08 fstps 0x80a38e8
You didn't say what version of GDB. Is it the old version which came
with RH7.2? If so, this is a known and fixed bug in GDB, use a newer
one instead.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer