Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Mathew Yeates <mat.yeates@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: more fortran problems
Date: Sat, 18 Sep 2010 00:02:00 -0000	[thread overview]
Message-ID: <4C94017F.8090905@vmware.com> (raw)
In-Reply-To: <AANLkTikGL0PJeGpjiztvXOLFKX04=G7mPpbMJgQ2kOxP@mail.gmail.com>

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= [...]


  reply	other threads:[~2010-09-18  0:02 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 [this message]
2010-09-18  0:16   ` Mathew Yeates
2010-09-20 17:18   ` Doug Evans
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=4C94017F.8090905@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb@sourceware.org \
    --cc=mat.yeates@gmail.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