This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
more fortran problems
- From: Mathew Yeates <mat dot yeates at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 17 Sep 2010 16:36:45 -0700
- Subject: more fortran problems
I am dealing with an array of logicals.
With the line
if (Tau_mask(itau,imix)) then
I type
(gdb) set Tau_mask(itau,imix) = .TRUE.
(gdb) print Tau_mask(itau,imix)
.TRUE.
.
but the code below the "if" statement isnt executed.
So, now I'm trying set the memory location.
(gdb) print &Tau_mask
$6 = (PTR TO -> ( logical(kind=4) (*,*))) 0x2859630
(gdb) set (int)0x2859630=.TRUE.
Left operand of assignment is not an lvalue
What am I doing wrong?
-Mathew