From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31730 invoked by alias); 28 Jul 2010 16:25:55 -0000 Received: (qmail 31697 invoked by uid 48); 28 Jul 2010 16:25:53 -0000 Date: Wed, 28 Jul 2010 16:25:00 -0000 Message-ID: <20100728162553.31696.qmail@sourceware.org> From: "tromey at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20090312184738.9946.tromey@redhat.com> References: <20090312184738.9946.tromey@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug c++/9946] gdb does not understand DW_TAG_template_value_param X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00107.txt.bz2 ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-07-28 16:24 ------- Subject: Bug 9946 CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2010-07-28 16:24:00 Modified files: gdb : ChangeLog cp-namespace.c cp-support.h dwarf2read.c gdbtypes.c gdbtypes.h objfiles.c objfiles.h symfile.c symtab.c symtab.h gdb/testsuite : ChangeLog Added files: gdb/testsuite/gdb.cp: temargs.cc temargs.exp Log message: gdb PR c++/9946: * symfile.c (reread_symbols): Clear template_symbols. * symtab.h (struct symbol) : New field. (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. (struct template_symbol): New. * symtab.c (lookup_symbol_aux_local): Use cp_lookup_symbol_imports_or_template. * objfiles.h (struct objfile) : New field. * objfiles.c (relocate_one_symbol): New function. (objfile_relocate1): Use it. Relocate isolated symbols. * gdbtypes.h (struct cplus_struct_type) : New fields. (TYPE_N_TEMPLATE_ARGUMENTS): New macro. (TYPE_TEMPLATE_ARGUMENTS): Likewise. (TYPE_TEMPLATE_ARGUMENT): Likewise. (lookup_typename): Update. * gdbtypes.c (lookup_typename): Constify "block" argument. * dwarf2read.c: Include vec.h. (symbolp): New typedef. (read_func_scope): Read template arguments. Allocate a template_symbol when needed. (read_structure_type): Read template arguments. (new_symbol_full): New function, from new_symbol. Handle DW_TAG_template_type_param and DW_TAG_template_value_param. (new_symbol): Rewrite as wrapper. * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. * cp-namespace.c: Include language.h. (search_symbol_list): New function. (cp_lookup_symbol_imports_or_template): Likewise. gdb/testsuite PR c++/9946: * gdb.cp/temargs.exp: New file. * gdb.cp/temargs.cc: New file. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12035&r2=1.12036 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-namespace.c.diff?cvsroot=src&r1=1.43&r2=1.44 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-support.h.diff?cvsroot=src&r1=1.38&r2=1.39 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.429&r2=1.430 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbtypes.c.diff?cvsroot=src&r1=1.195&r2=1.196 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbtypes.h.diff?cvsroot=src&r1=1.133&r2=1.134 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/objfiles.c.diff?cvsroot=src&r1=1.116&r2=1.117 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/objfiles.h.diff?cvsroot=src&r1=1.72&r2=1.73 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symfile.c.diff?cvsroot=src&r1=1.291&r2=1.292 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symtab.c.diff?cvsroot=src&r1=1.246&r2=1.247 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symtab.h.diff?cvsroot=src&r1=1.159&r2=1.160 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2393&r2=1.2394 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/temargs.cc.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/temargs.exp.diff?cvsroot=src&r1=NONE&r2=1.1 ------- Additional Comments From tromey at redhat dot com 2010-07-28 16:25 ------- I checked in the fix. -- What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO|11060 | nThis| | Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|6.8 |7.3 http://sourceware.org/bugzilla/show_bug.cgi?id=9946 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.