From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31277 invoked by alias); 27 Nov 2001 12:47:38 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31252 invoked from network); 27 Nov 2001 12:47:33 -0000 Received: from unknown (HELO relay5.ftech.net) (212.32.16.118) by hostedprojects.ges.redhat.com with SMTP; 27 Nov 2001 12:47:33 -0000 Received: from ibm9.ftech.net ([212.32.16.79] helo=gwlinux) by relay5.ftech.net with esmtp (Exim 3.22-ftech-p6.1 #14) id 168he3-0000Zu-00; Tue, 27 Nov 2001 12:47:27 +0000 Received: from gwlinux (there) [192.168.0.2] by gwlinux with smtp (Exim 2.05 #1 (Debian)) id 168haM-0003at-00; Tue, 27 Nov 2001 12:43:38 +0000 Content-Type: text/plain; charset="iso-8859-1" From: John Hedges To: Eli Zaretskii Subject: Re: Problem with fld on i686 Date: Sat, 17 Nov 2001 05:39:00 -0000 X-Mailer: KMail [version 1.3] Cc: gdb@sourceware.cygnus.com References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-SW-Source: 2001-11/txt/msg00179.txt.bz2 On Tuesday 27 Nov 2001 11:18 am, Eli Zaretskii wrote: > If the code _is_ correct (I think it is), but the results aren't, then > the fact that static_cast was used in the C++ program is irrelevant, > right? Correct - static_cast is irrelevant if we assume it compiled correctly. The disassembly looks ok to me too but I'm no asm expert. > > The problem does not occur when run outside the debugger, nor in a > > minimal test program. > > This suggests that perhaps the FPU state is not saved/restored correctly > across task switches. What OS is that? Can you try a different version > of the same OS, or some similar but not identical OS? OS is Linux 2.2.14-5.0. Problem does not occur with Linux 2.2.16 on a different (but stil i686) box.