From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13874 invoked by alias); 23 Dec 2007 02:26:03 -0000 Received: (qmail 13864 invoked by uid 22791); 23 Dec 2007 02:26:02 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 23 Dec 2007 02:25:57 +0000 Received: by wa-out-1112.google.com with SMTP id l35so1574418waf.12 for ; Sat, 22 Dec 2007 18:25:55 -0800 (PST) Received: by 10.114.200.2 with SMTP id x2mr453702waf.19.1198376755298; Sat, 22 Dec 2007 18:25:55 -0800 (PST) Received: by 10.114.122.3 with HTTP; Sat, 22 Dec 2007 18:25:55 -0800 (PST) Message-ID: <8b685e3f0712221825m40e44503p875481c26218c6fd@mail.gmail.com> Date: Sun, 23 Dec 2007 02:26:00 -0000 From: "jian shen" To: "jian shen" , gdb@sourceware.org Subject: Re: gdb cannot understand some type with STL In-Reply-To: <20071222173507.GA21728@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8b685e3f0712212124n64194bc7je86bede3a21c3826@mail.gmail.com> <20071222173507.GA21728@caradoc.them.org> 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-12/txt/msg00173.txt.bz2 On 12/23/07, Daniel Jacobowitz wrote: > What does "whatis l" print? I believe this problem is because GDB > does not know about default template parameters. > > template > > class list : protected _List_base<_Tp, _Alloc> > > It's going to be a std::list > or something > like that. You are right. (gdb) whatis l type = std::list > (gdb) whatis 'std::list >' type = std::list > > > This is fixable, but it would require changes to both GCC and GDB that > no one has worked on yet. > > > (gdb) whatis std::list* > > A syntax error in expression, near `'. > > This looks like a bug in GDB, in the c-exp.y parser. Yes, this looks like a bug. (gdb) whatis 'std::list >*' No symbol "std::list >*" in current context. Thanks, Jian