bug-gdb
[Top][All Lists]
Advanced

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

problem printing equivalenced fortran arrays in linux


From: rubin
Subject: problem printing equivalenced fortran arrays in linux
Date: Sat, 21 Feb 2004 11:34:04 +0200

Hi
When debugging (gdb) the following code using Red-hat linux and g77 compiler, I get an "unknown in context" message when trying to do e.g.
p i1(1)
The debugger does correctly print the value 11 when doing
p i11
where i11 has the value of i1(1).
This problem was not found when using the (Wildebeest) gdb in HP-UX, nor using dbx in AIX or IRIX64.
If you can help, please reply to address@hidden
Thanks.
The code is:
      program equiv
      dimension i1(10),i2(10) 
      equivalence (i1(1),i2(1))
      i1(1) = 11
      i2(2) = 22
      i11 = i1(1)
      i22 = i2(2)
c Put breakpoint at next line before using print in debug
      stop
      end
 

reply via email to

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