From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24406 invoked by alias); 18 Sep 2010 00:02:16 -0000 Received: (qmail 24397 invoked by uid 22791); 18 Sep 2010 00:02:15 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Sep 2010 00:02:09 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id A8C95130E6; Fri, 17 Sep 2010 17:02:07 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost4.vmware.com (Postfix) with ESMTP id 9E40CC9A4D; Fri, 17 Sep 2010 17:02:07 -0700 (PDT) Message-ID: <4C94017F.8090905@vmware.com> Date: Sat, 18 Sep 2010 00:02:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20100903) MIME-Version: 1.0 To: Mathew Yeates CC: "gdb@sourceware.org" Subject: Re: more fortran problems References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00109.txt.bz2 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= [...]