From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2923 invoked by alias); 7 Nov 2005 00:02:36 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 2910 invoked by uid 22791); 7 Nov 2005 00:02:34 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 07 Nov 2005 00:02:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EYuSz-0005Cn-E6; Sun, 06 Nov 2005 19:02:29 -0500 Date: Mon, 07 Nov 2005 00:02:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: Mark Kettenis , woodzltc@cn.ibm.com, gdb@sources.redhat.com, fortran@gcc.gnu.org Subject: Re: The root cause for SEGV in evaluating fortran function call, any solution or suggestion? Message-ID: <20051107000229.GC19200@nevyn.them.org> Mail-Followup-To: Jim Blandy , Mark Kettenis , woodzltc@cn.ibm.com, gdb@sources.redhat.com, fortran@gcc.gnu.org References: <200511021551.jA2FpO7D009728@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00126.txt.bz2 On Wed, Nov 02, 2005 at 11:42:36PM -0800, Jim Blandy wrote: > The types in the debug information should not reflect the extra level > of indirection; the fact that they're passed by reference is just part > of the meaning of a Fortran function call. But the location > expression should encode the extra level of indirection. This seems perfectly sensible to me. But the example Wu posted earlier does not agree: today gfortran apparently puts out the indirections explicitly. Paul Brook had this to say when I asked him: When a user says "p foo" they should get the value, not the address of the argument. So it sounds like gfortran will need to be fixed. -- Daniel Jacobowitz CodeSourcery, LLC