From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6117 invoked by alias); 2 Feb 2007 19:43:42 -0000 Received: (qmail 6098 invoked by uid 22791); 2 Feb 2007 19:43:40 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 02 Feb 2007 19:43:31 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HD4Jl-0001mV-9C; Fri, 02 Feb 2007 14:43:29 -0500 Date: Fri, 02 Feb 2007 19:43:00 -0000 From: Daniel Jacobowitz To: Neo Cc: gdb Subject: Re: GDB crashes when call member function having same name as a local pointer variable Message-ID: <20070202194329.GA6814@nevyn.them.org> Mail-Followup-To: Neo , gdb References: <45C38D6A.40204@cse.unl.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C38D6A.40204@cse.unl.edu> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-02/txt/msg00020.txt.bz2 On Fri, Feb 02, 2007 at 01:13:46PM -0600, Neo wrote: > I am wondering if it would be a bug. The following is the tiny program I > am using to test. This test failed on both gdb 6.5 and 6.6 I don't think it is. GDB always evaluates expressions in the context of the current program location; if you ask it to print just "data", it will show you whether it's a function or not. -- Daniel Jacobowitz CodeSourcery