more fortran problems

Mathew Yeates mat.yeates@gmail.com
Sat Sep 18 00:16:00 GMT 2010


yeah, I finally got it. And now the code below the "if" statement is
being executed!

So .... this works but is kind of ugly. Maybe gdb is computing the
address incorrectly?

-Mathew

On Fri, Sep 17, 2010 at 5:02 PM, Michael Snyder <msnyder@vmware.com> wrote:
> Mathew Yeates wrote:
>
>> 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?
>
> This is not unique to Fortran.  The usual gdb syntax for this would be
>
>   set *(int *) 0x2859630= [...]
>
>



More information about the Gdb mailing list