From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18126 invoked by alias); 10 Nov 2006 19:11:54 -0000 Received: (qmail 17944 invoked by uid 22791); 10 Nov 2006 19:11:53 -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, 10 Nov 2006 19:11:46 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Gibmx-0000Ol-Tn; Fri, 10 Nov 2006 14:11:44 -0500 Date: Fri, 10 Nov 2006 19:11:00 -0000 From: Daniel Jacobowitz To: =?iso-8859-1?Q?Ra=FAl?= Huertas Cc: GDB maillist Subject: Re: in a C++ program compiled with gcc 4.0.1 Message-ID: <20061110191143.GA1188@nevyn.them.org> Mail-Followup-To: =?iso-8859-1?Q?Ra=FAl?= Huertas , GDB maillist References: <4554CDC5.5030309@ya.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4554CDC5.5030309@ya.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-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00059.txt.bz2 On Fri, Nov 10, 2006 at 08:06:45PM +0100, Raúl Huertas wrote: > This is my first post to this mail list, and I'm not sure if it is the > correct one. In case I'm wrong, can you please tell me wich mail list is > the correct one? This one is fine. > The program works as expected, but when I run it in GDB setting a > breakpoint in the "cout" line, I cannot print the content of "a_example". > Here is the output of gdb: > > (gdb) p a_example > $1 = Unfortunately this is a GCC problem - I am not sure whether to call it a bug or not. This might work if you had a debugging build of libstdc++, but debug information about some classes is only emitted with their key methods. You'll have to report this to the GCC developers, probably via bugzilla. -- Daniel Jacobowitz CodeSourcery