public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* no such vector element
@ 2010-08-23 20:54 Mathew Yeates
  2010-08-24 18:23 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Mathew Yeates @ 2010-08-23 20:54 UTC (permalink / raw)
  To: gdb

I am getting this error when I try and access a fortran array.

>p Opt_depth_ref_per_band(2,2)
no such vector element

Opt_depth_ref_per_band is an array with 4 rows and 74 columns.

It is declared as
real,    intent(out), dimension(NBAND, Num_mixture) :: &
      	   Opt_depth_ref_per_band

Where NBAND is a constant and Num_mixture is an argument to the subroutine.

I can print values by using x/f on the array address.

Any ideas?

-Mathew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: no such vector element
  2010-08-23 20:54 no such vector element Mathew Yeates
@ 2010-08-24 18:23 ` Tom Tromey
  2010-08-24 18:30   ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2010-08-24 18:23 UTC (permalink / raw)
  To: Mathew Yeates; +Cc: gdb

>>>>> "Mathew" == Mathew Yeates <mat.yeates@gmail.com> writes:

Mathew> I am getting this error when I try and access a fortran array.
Mathew> p Opt_depth_ref_per_band(2,2)
Mathew> no such vector element

Offhand this sounds like the known VLA problem.

    http://sourceware.org/bugzilla/show_bug.cgi?id=9260
    http://sourceware.org/bugzilla/show_bug.cgi?id=9395

I know Jan has a branch for this in the archer repository, but I don't
know the current status.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: no such vector element
  2010-08-24 18:23 ` Tom Tromey
@ 2010-08-24 18:30   ` Jan Kratochvil
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kratochvil @ 2010-08-24 18:30 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Mathew Yeates, gdb

On Tue, 24 Aug 2010 20:23:11 +0200, Tom Tromey wrote:
> >>>>> "Mathew" == Mathew Yeates <mat.yeates@gmail.com> writes:
> 
> Mathew> I am getting this error when I try and access a fortran array.
> Mathew> p Opt_depth_ref_per_band(2,2)
> Mathew> no such vector element
> 
> Offhand this sounds like the known VLA problem.
> 
>     http://sourceware.org/bugzilla/show_bug.cgi?id=9260
>     http://sourceware.org/bugzilla/show_bug.cgi?id=9395
> 
> I know Jan has a branch for this in the archer repository, but I don't
> know the current status.

The branch gets updated only for each Fedora release which roughly corresponds
to FSF GDB releases.

Maintaining existing testcases as PASSing.

There exist various new failures of that branch such as
	http://sourceware.org/bugzilla/show_bug.cgi?id=9395#c4
and others

but currently planning to merge it first to FSF GDB before fixing them as this
kind of extension is difficult to maintain off-trunk.


Regards,
Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-24 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 20:54 no such vector element Mathew Yeates
2010-08-24 18:23 ` Tom Tromey
2010-08-24 18:30   ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).