From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6807 invoked by alias); 20 Sep 2010 17:24:09 -0000 Received: (qmail 6798 invoked by uid 22791); 20 Sep 2010 17:24:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Sep 2010 17:24:03 +0000 Received: from kpbe17.cbf.corp.google.com (kpbe17.cbf.corp.google.com [172.25.105.81]) by smtp-out.google.com with ESMTP id o8KHNxiO016218 for ; Mon, 20 Sep 2010 10:23:59 -0700 Received: from pwi3 (pwi3.prod.google.com [10.241.219.3]) by kpbe17.cbf.corp.google.com with ESMTP id o8KHNwOP013880 for ; Mon, 20 Sep 2010 10:23:58 -0700 Received: by pwi3 with SMTP id 3so1838346pwi.33 for ; Mon, 20 Sep 2010 10:23:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.115.109.6 with SMTP id l6mr10394216wam.164.1285003437234; Mon, 20 Sep 2010 10:23:57 -0700 (PDT) Received: by 10.220.97.200 with HTTP; Mon, 20 Sep 2010 10:23:56 -0700 (PDT) In-Reply-To: References: <4C94017F.8090905@vmware.com> Date: Mon, 20 Sep 2010 17:24:00 -0000 Message-ID: Subject: Re: more fortran problems From: Doug Evans To: Michael Snyder Cc: Mathew Yeates , "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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/msg00115.txt.bz2 On Mon, Sep 20, 2010 at 10:18 AM, Doug Evans wrote: > On Fri, Sep 17, 2010 at 5:02 PM, Michael Snyder wrot= e: >> 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 [...] > > [for reference sake] > > There's also the gdb extension: =A0set {int} 0x2859630 =3D [...] 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.]