This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: more fortran problems


On Mon, Sep 20, 2010 at 10:18 AM, Doug Evans <dje@google.com> wrote:
> 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= [...]
>
> [for reference sake]
>
> There's also the gdb extension: ?set {int} 0x2859630 = [...]

Heh, except this extension doesn't seem to have been added to the
fortran parser.
[I don't know fortran well enough to say that it's a good idea though.]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]