Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Petr Sorfa <petrs@caldera.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: "Arthur H. Edwards,1,505-853-6042,505-256-0834" 
	<edwards@icantbelieveimdoingthis.com>,
	gdb@sources.redhat.com
Subject: Re: misrepresentation of complex numbers
Date: Tue, 08 Jan 2002 06:48:00 -0000	[thread overview]
Message-ID: <3C3B07DB.DA77D451@caldera.com> (raw)
In-Reply-To: <3C1B9E97.9040706@cygnus.com>

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
----------------------------------------------------------


      reply	other threads:[~2002-01-08 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-26 12:37 Arthur H. Edwards, 1, 505-853-6042, 505-256-0834
2001-11-14 13:45 ` Arthur H. Edwards,1,505-853-6042,505-256-0834
2001-12-15 11:03 ` Andrew Cagney
2002-01-08  6:48   ` Petr Sorfa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C3B07DB.DA77D451@caldera.com \
    --to=petrs@caldera.com \
    --cc=ac131313@cygnus.com \
    --cc=edwards@icantbelieveimdoingthis.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox