From: Doug Evans <dje@google.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: Mathew Yeates <mat.yeates@gmail.com>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: more fortran problems
Date: Mon, 20 Sep 2010 17:18:00 -0000 [thread overview]
Message-ID: <AANLkTineOk0hSOC6qnfi7_VSFY3AdRqzkjgU4CiT1VtO@mail.gmail.com> (raw)
In-Reply-To: <4C94017F.8090905@vmware.com>
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 = [...]
next prev parent reply other threads:[~2010-09-20 17:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-17 23:36 Mathew Yeates
2010-09-18 0:02 ` Michael Snyder
2010-09-18 0:16 ` Mathew Yeates
2010-09-20 17:18 ` Doug Evans [this message]
2010-09-20 17:24 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTineOk0hSOC6qnfi7_VSFY3AdRqzkjgU4CiT1VtO@mail.gmail.com \
--to=dje@google.com \
--cc=gdb@sourceware.org \
--cc=mat.yeates@gmail.com \
--cc=msnyder@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox