Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mathew Yeates <mat.yeates@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: multidimensional fortran arrays
Date: Tue, 07 Sep 2010 04:34:00 -0000	[thread overview]
Message-ID: <AANLkTinFe-hr1T22x7R9q7ZRW7PS+9vAHGNTb-tkQgzO@mail.gmail.com> (raw)
In-Reply-To: <20100903054655.GA25904@host1.dyn.jankratochvil.net>

gdb shouldn't claim to support gfortran until this  is fixed.
Seriously, I cant print the value of a multidimensional  array?

On Thu, Sep 2, 2010 at 10:46 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Thu, 02 Sep 2010 19:29:07 +0200, Mathew Yeates wrote:
>> I mentioned this before but got no reply. So I have been getting the
>> address of the array and using "x/f".
>> But now I am using 4 dimensional arrays and this is getting old.
>>
>> Anyone have any ideas how to fix this? print myarray(1,2) -> "so such
>> vec element"
>
> For some reason it really does not work even for static arrays.
> program a
>  integer :: v (2, 3, 4)
>  v (:, :, :) = 10
>  v (2, 3, 4) = 20
>  v (2, 3, 4) = 20 ! line 5
> end
> (gdb) b 5
> (gdb) r
> (gdb) p v(2,3,4)
> no such vector element
>
> It works on archer-jankratochvil-vla
> (gdb) p v(2,3,4)
> $1 = 20
> available at
>        http://sourceware.org/gdb/wiki/ArcherBranchManagement
> (or Fedora releases) but the support has some other problems and I should
> merge it to FSF GDB soon.
>
>
> Thanks,
> Jan
>


  reply	other threads:[~2010-09-07  4:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 17:29 Mathew Yeates
2010-09-03  5:47 ` Jan Kratochvil
2010-09-07  4:34   ` Mathew Yeates [this message]
2010-09-07 22:19     ` Andrew Burgess
2010-09-09 16:37       ` Mathew Yeates
2010-09-13 23:14         ` Mathew Yeates
2010-09-14  7:32           ` Andrew Burgess
2010-09-15 17:45           ` Tom Tromey

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=AANLkTinFe-hr1T22x7R9q7ZRW7PS+9vAHGNTb-tkQgzO@mail.gmail.com \
    --to=mat.yeates@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@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