From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1433 invoked by alias); 8 Jan 2002 14:48:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1311 invoked from network); 8 Jan 2002 14:48:16 -0000 Received: from unknown (HELO nimbus.nj.caldera.com) (132.147.103.56) by sources.redhat.com with SMTP; 8 Jan 2002 14:48:16 -0000 Received: from caldera.com (IDENT:petrs@tetsuo [132.147.135.116]) by nimbus.nj.caldera.com (8.10.1/UW7.1.1-NSCd) with ESMTP id g08Eld428671; Tue, 8 Jan 2002 09:47:39 -0500 (EST) Message-ID: <3C3B07DB.DA77D451@caldera.com> Date: Tue, 08 Jan 2002 06:48:00 -0000 From: Petr Sorfa Reply-To: petrs@caldera.com Organization: Caldera X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney CC: "Arthur H. Edwards,1,505-853-6042,505-256-0834" , gdb@sources.redhat.com Subject: Re: misrepresentation of complex numbers References: <3C02A11A.2040709@icantbelieveimdoingthis.com> <3C1B9E97.9040706@cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00055.txt.bz2 Hi, Sorry for the late reply (been away). I don't think this is a bug. The output from the gdb print command for certain FORTRAN values does not need to match the output from the FORTRAN print statement. Consider arrays, particularly large multi-dimensional ones, that become completely unreadble with the FORTRAN print statment, but handled quite well with the gdb print command. In addition it is much easier to parse the output values provided by the gdb print command. Petr > Thanks. If you haven't already, could you please create a bug report of > this. See http://sources.redhat.com/gdb/bugs/ > > Andrew > > > I attach a very simple code, testc.f that illustrates the bug in dbg. After compiling with the -g option stop the code at line 7 and issue the gdb command > > > > print s > > > > gdb will respond with > > > > $1 = (10,10) > > > > issue the cont command and you will see that the number should be > > > > 10, 4 > > > > > > Art Edwards > > > > -- -------------------------------------------------------- Petr Sorfa Senior Software Engineer Caldera 430 Mountain Ave. http://www.caldera.com Murray Hill 07974 NJ, USA -------------------------------------------------------- Disclaimer: All my comments are my own and nobody else's ----------------------------------------------------------