bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic sized array / no such vector element / (eclipse+cygwin+gdb)


From: leup
Subject: Dynamic sized array / no such vector element / (eclipse+cygwin+gdb)
Date: Thu, 23 Jul 2009 05:13:33 -0700 (PDT)
User-agent: G2/1.0

hi, i'm new to submit bug so, sorry if i don't do well.

i'm using gdb to debug a fortram program. I'm working with eclipse
3.4+cygwin+gcc4.4+ the last current snapshot of gdb (6.8.50.20090723,
problem occurs also with the 20090703 one)

when i debug some subroutine, everything works fine but the dynamic
size arrays. Problem is that it cannot display the values/content of
the array. And it seems to be this is a bug because with the official
release of gdb (6.8), it's possible to see the content of the array.

for example :
===================
subroutine test(A,B)

integer :: B
real :: A(B)

...

end
===================

with both versions, array A is seen as a zero-elements array (i heard
about the archer vla patch but i didn't manage to make it work)

with 6.8, if i ask to display the value of the first element of A, aka
A(1), it works fine. It doesn't work with the 6.8.50.20090723, gdb
message is "no such element vector."


FYI, i tried to use gdb 6.8.50 because of the new ability to see
modules variables that can't be debugged by 6.8.


thanks

(sorry for my english mistakes by the way)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]