From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 56A532FBD4 for ; Wed, 10 Jan 2001 09:17:39 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0AEHdY19000 for axp-list@listman.redhat.com; Wed, 10 Jan 2001 09:17:39 -0500 Received: from saturn.cis.rit.edu (www.multispectral.org [129.21.57.10]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f0AEHcD18992 for ; Wed, 10 Jan 2001 09:17:38 -0500 Received: (qmail 12370 invoked from network); 10 Jan 2001 14:16:42 -0000 Received: from titan-2.cis.rit.edu (HELO cis.rit.edu) (129.21.57.139) by www.multispectral.org with SMTP; 10 Jan 2001 14:16:42 -0000 Message-ID: <3A5C6ECB.633319EC@cis.rit.edu> Date: Wed, 10 Jan 2001 09:16:43 -0500 From: "S.D. Brown" Organization: DIRS/CIS/RIT X-Mailer: Mozilla 4.76 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: gdb(1) quirks ... References: <20010109225502.39C712F79B@listman.redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors I work on a computationally intensive software model and my development machine is a AlphaPC 164/UX running RedHat 6.2 (kernel 2.2.14-6.0). I spend a lot of time debugging my code and ever since I went to 6.2 and the distributed kernel I have had "issues" with gdb(1) regarding floating point numbers. I could list lots of things that don't work, but the mini session below should demonstrate the problems fine enough. These same steps work fine on other non-Linux boxes and on a RedHat 5.1 Sparc machine. I should note that even though my demo doesn't use an executable, my daily exposure is using real programs are built with gcc (egcs-2.91.66). Again, gdb(1) seems to demonstrate this same behavior without an executable loaded so I don't think the results would change if I used ccc(1). Has anyone or everyone seen this before, and if so what do I do to fix it? Is this a gdb(1) issue or a kernel issue? If you are running a later gdb(1)/kernel combination do you have this behavior? Thanks, Scott -- $ gdb GNU gdb 19991004 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alpha-redhat-linux". (gdb) p 1+1 $1 = 2 (gdb) p 1.0+1 $2 = 0 (gdb) p 1.0+1.0 $3 = 0 (gdb) Erroneous arithmetic operation. (gdb) -- Scott D. Brown // Scientist // brown@cis.rit.edu Digital Imaging and Remote Sensing Lab // Rochester Institute of Technology 54 Lomb Memorial Dr. Rochester, NY 14623 // 716.475.7194 // FX:716.475.5988