From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3987 invoked by alias); 11 Mar 2008 21:20:55 -0000 Received: (qmail 3979 invoked by uid 22791); 11 Mar 2008 21:20:54 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.182) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Mar 2008 21:20:32 +0000 Received: by wa-out-1112.google.com with SMTP id l35so2915916waf.12 for ; Tue, 11 Mar 2008 14:20:26 -0700 (PDT) Received: by 10.114.120.1 with SMTP id s1mr2729230wac.82.1205270426403; Tue, 11 Mar 2008 14:20:26 -0700 (PDT) Received: by 10.114.110.12 with HTTP; Tue, 11 Mar 2008 14:20:26 -0700 (PDT) Message-ID: <5b7094580803111420i63cc6f89k900fab7b40bd4482@mail.gmail.com> Date: Tue, 11 Mar 2008 21:32:00 -0000 From: "Brian Budge" To: "Michael Snyder" Subject: Re: breakpoints and symbol examination problems Cc: "Daniel Jacobowitz" , gdb@sourceware.org In-Reply-To: <5b7094580803110824t3808df2erf37df1dea91401a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5b7094580803101705m7bc6e8ffqa480a74d9b0ab548@mail.gmail.com> <20080311003238.GA14908@caradoc.them.org> <1205196740.19253.809.camel@localhost.localdomain> <5b7094580803110824t3808df2erf37df1dea91401a2@mail.gmail.com> 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: 2008-03/txt/msg00124.txt.bz2 Hi Michael, Daniel, all - I built gdb from CVS gdb_6_8-branch, and indeed it fixed my breakpoint problem. Unfortunately, I still can't examine local variables. I get this interaction, for example: 207 vector< dopVertex > tmpVerts; (gdb) 208 vector< dopEdge > tmpEdges; (gdb) p tmpVerts No symbol "tmpVerts" in current context. Needless to say, not being able to examine your local variable makes debugging fairly tricky ;) So, one down, one to go... not too shabby. Any more ideas? Thanks, Brian On Tue, Mar 11, 2008 at 8:24 AM, Brian Budge wrote: > Actually, this is already with -O0... at least I think. I'm not > passing any optimization flags. For debug symbols I'm passing -ggdb. > > I'll try the CVS current top of tree a bit later today. > > Thanks, > Brian > > > > On Mon, Mar 10, 2008 at 5:52 PM, Michael Snyder wrote: > > On Mon, 2008-03-10 at 20:32 -0400, Daniel Jacobowitz wrote: > > > On Mon, Mar 10, 2008 at 05:05:17PM -0700, Brian Budge wrote: > > > > > > > > > Additionally, I can't seem to examine any "stack" variables once in > > > > these template functions. I can see member variables, global > > > > variables, and function parameters. > > > > > > This may be fixed, or it may be a compiler bug. GCC is not very good > > > about emitting local variable information in optimized code. > > > > Can you compile with -O0? > > > > > > >