Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tobias Burnus <burnus@net-b.de>
To: fortran@gcc.gnu.org, gdb@sourceware.org
Subject: Re: display character strings in fortran
Date: Wed, 10 Jun 2009 11:56:00 -0000	[thread overview]
Message-ID: <20090610115634.GA14702@net-b.de> (raw)

kamaraju kusumanchi wrote:
> However, when debugged, the character strings are not displayed properly.
> [...]
> (gdb) p first_name
> $1 = (32 ' ', 107 'k', 97 'a', 109 'm', 97 'a', 114 'r', 97 'a', 106
> 'j', 117 'u', 32 ' ', 32 ' ', 32 ' ', 32 ' ', 32 ' ', 32 ' ', 32 ' ',
> 32 ' ', 32 ' ', 32 ' ', 32 ' ')
> [...]
> gcc version 4.3.2 (Debian 4.3.2-1.1)

> Is this a bug in gdb or gfortran? I appreciate if you could fix it.

The GCC bug was fixed about half a year ago. Please use GCC 4.4.0 (which
was released April 21, 2009) or later. Using GCC 4.4.x, one gets:

(gdb) p first_name
$1 = ' kamaraju', ' ' <repeats 11 times>

Tobias


             reply	other threads:[~2009-06-10 11:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 11:56 Tobias Burnus [this message]
2009-06-10 12:19 ` kamaraju kusumanchi
  -- strict thread matches above, loose matches on Subject: below --
2009-06-10 11:34 kamaraju kusumanchi
2009-06-10 11:50 ` Arjen Markus

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=20090610115634.GA14702@net-b.de \
    --to=burnus@net-b.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gdb@sourceware.org \
    /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