From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26165 invoked by alias); 8 Jan 2007 17:58:38 -0000 Received: (qmail 26147 invoked by uid 22791); 8 Jan 2007 17:58:37 -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; Mon, 08 Jan 2007 17:58:33 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H3ylS-00054C-NB; Mon, 08 Jan 2007 12:58:30 -0500 Date: Mon, 08 Jan 2007 17:58:00 -0000 From: Daniel Jacobowitz To: Peng Yu Cc: gdb@sourceware.org Subject: Re: Debugging static variable in inlined member function Message-ID: <20070108175830.GB19412@nevyn.them.org> Mail-Followup-To: Peng Yu , gdb@sourceware.org References: <366c6f340701080755p2fcc08caq9bdc1d4d9debdd5b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <366c6f340701080755p2fcc08caq9bdc1d4d9debdd5b@mail.gmail.com> 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-01/txt/msg00122.txt.bz2 On Mon, Jan 08, 2007 at 09:55:31AM -0600, Peng Yu wrote: > Hi, > > I have the following program listed below this email. I can not print > _a in the inlined version. But it is OK to print _a in the non-inlined > version. Can you tell me how to debug the inlined version of _a? GDB support for inlined functions is known to be poor. GCC's debug info for inlined functions also has some problems. There is not much you can do to work around that. -- Daniel Jacobowitz CodeSourcery