From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3461 invoked by alias); 20 Sep 2010 17:18:29 -0000 Received: (qmail 3441 invoked by uid 22791); 20 Sep 2010 17:18:28 -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) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Sep 2010 17:18:22 +0000 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o8KHIHX3020371 for ; Mon, 20 Sep 2010 10:18:19 -0700 Received: from vws15 (vws15.prod.google.com [10.241.21.143]) by kpbe15.cbf.corp.google.com with ESMTP id o8KHIFof005429 for ; Mon, 20 Sep 2010 10:18:16 -0700 Received: by vws15 with SMTP id 15so3811010vws.26 for ; Mon, 20 Sep 2010 10:18:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.62.196 with SMTP id y4mr4481093vch.91.1285003094950; Mon, 20 Sep 2010 10:18:14 -0700 (PDT) Received: by 10.220.97.200 with HTTP; Mon, 20 Sep 2010 10:18:14 -0700 (PDT) In-Reply-To: <4C94017F.8090905@vmware.com> References: <4C94017F.8090905@vmware.com> Date: Mon, 20 Sep 2010 17:18: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/msg00114.txt.bz2 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 [...] [for reference sake] There's also the gdb extension: set {int} 0x2859630 =3D [...]