[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem printing equivalenced fortran arrays in linux
From: |
Michael Chastain |
Subject: |
Re: problem printing equivalenced fortran arrays in linux |
Date: |
Fri, 23 Jul 2004 17:37:22 -0400 |
User-agent: |
nail 10.8 6/28/04 |
Hello rubin,
I am working through the bug reports from address@hidden and I
just got to your message from February 2004. I apologize for
the five month delay.
I tried your program:
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
I compiled this on native i686-pc-linux-gnu, red hat linux 8.0,
with g77 3.3.4 and g77 3.4.1. The command line is:
g77 -gdwarf-2 rubin.f
Then I debugged a.out with gdb 6.1.1. I put a breakpoint on
the 'stop' line and printed the values:
(gdb) print i11
$1 = 11
(gdb) print i22
$2 = 22
(gdb) print i1(1)
$3 = 11
(gdb) print i1(2)
$4 = 22
(gdb) print i2(1)
$5 = 11
(gdb) print i2(2)
$6 = 22
So this works with the current released versions of gcc and gdb.
If you have any questions I'd be happy to help.
Michael C
GDB QA Guy
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: problem printing equivalenced fortran arrays in linux,
Michael Chastain <=