From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29016 invoked by alias); 18 Sep 2010 00:16:23 -0000 Received: (qmail 28996 invoked by uid 22791); 18 Sep 2010 00:16:22 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Sep 2010 00:16:16 +0000 Received: by wwb39 with SMTP id 39so381400wwb.0 for ; Fri, 17 Sep 2010 17:16:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.37.8 with SMTP id v8mr4675722wbd.180.1284768970268; Fri, 17 Sep 2010 17:16:10 -0700 (PDT) Received: by 10.216.236.214 with HTTP; Fri, 17 Sep 2010 17:16:10 -0700 (PDT) In-Reply-To: <4C94017F.8090905@vmware.com> References: <4C94017F.8090905@vmware.com> Date: Sat, 18 Sep 2010 00:16:00 -0000 Message-ID: Subject: Re: more fortran problems From: Mathew Yeates To: Michael Snyder Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00110.txt.bz2 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 wrote: > Mathew Yeates wrote: > >> So, now I'm trying set the memory location. >> (gdb) print &Tau_mask >> $6 =3D (PTR TO -> ( logical(kind=3D4) (*,*))) 0x2859630 >> (gdb) set (int)0x2859630=3D.TRUE. >> Left operand of assignment is not an lvalue >> >> What am I doing wrong? > > This is not unique to Fortran. =A0The usual gdb syntax for this would be > > =A0 set *(int *) 0x2859630=3D [...] > >