Summary: | GDB does not understand pointer of STL class | ||
---|---|---|---|
Product: | gdb | Reporter: | vicshen |
Component: | c++ | Assignee: | Tom Tromey <tromey> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | apoenitz, gdb-prs |
Priority: | P3 | ||
Version: | 3.6 | ||
Target Milestone: | 7.2 | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
vicshen
2007-12-23 03:58:01 UTC
From: =?iso-8859-1?q?Andr=E9_P=F6nitz?= <apoenitz@trolltech.com> To: gdb-gnats@sources.redhat.com, vicshen@gmail.com, gdb-prs@sources.redhat.com Cc: Subject: Re: c++/2391: GDB does not understand pointer of STL class Date: Wed, 6 Aug 2008 17:07:06 +0200 http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&database= =3Dgdb&pr=3D2391 It "works" with whatis 'std::list<int,std::allocator<int> >'* i.e. quote everything but the star. Don't ask me why. And it's hard to automize... Andr=E9 Subject: Bug 9496 CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2010-02-19 20:22:03 Modified files: gdb : ChangeLog c-exp.y cp-namespace.c gdb/testsuite : ChangeLog gdb/testsuite/gdb.cp: namespace.exp Log message: gdb PR c++/8693, PR c++/9496: * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. * c-exp.y (lex_one_token): Rename from yylex. Don't call write_dollar_variable. Don't try to classify NAME tokens. (token_and_value): New type. (token_fifo, popping, name_obstack): New globals. (classify_name): New function. (classify_inner_name): Likewise. (yylex): Likewise. (VARIABLE): Now has type sval. (exp : VARIABLE): Call write_dollar_variable. (qualified_name): Use TYPENAME, not typebase. Add production for multiple "::" instances. (variable): Use name_not_typename. (qualified_type): Remove. (typebase): Update. gdb/testsuite PR c++/8693, PR c++/9496: * gdb.cp/namespace.exp: Remove some setup_kfail calls. Added regression tests. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11381&r2=1.11382 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/c-exp.y.diff?cvsroot=src&r1=1.70&r2=1.71 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cp-namespace.c.diff?cvsroot=src&r1=1.34&r2=1.35 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2149&r2=1.2150 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/namespace.exp.diff?cvsroot=src&r1=1.16&r2=1.17 I checked in the fix. |