public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/9946] New: gdb does not understand DW_TAG_template_value_param
@ 2009-03-12 18:47 tromey at redhat dot com
2009-09-02 18:37 ` [Bug c++/9946] " tromey at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2009-03-12 18:47 UTC (permalink / raw)
To: gdb-prs
We have a g++ that has been modified to emit DW_TAG_template_value_param.
However, gdb does not then make the corresponding symbols visible
to the user.
A simple test case is something like:
#include <stdio.h>
template<int X>
class T
{
public:
T()
{
printf ("%d\n", X);
}
};
int main()
{
T<23> t;
return 0;
}
If you break in the constructor, "print X" should show "23".
--
Summary: gdb does not understand DW_TAG_template_value_param
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at sourceware dot org
ReportedBy: tromey at redhat dot com
CC: gdb-prs at sourceware dot org
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/9946] gdb does not understand DW_TAG_template_value_param
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
@ 2009-09-02 18:37 ` tromey at redhat dot com
2010-05-24 6:22 ` pmuldoon at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2009-09-02 18:37 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2009-09-02 18:37 -------
*** Bug 10590 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dodji at redhat dot com
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/9946] gdb does not understand DW_TAG_template_value_param
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
2009-09-02 18:37 ` [Bug c++/9946] " tromey at redhat dot com
@ 2010-05-24 6:22 ` pmuldoon at redhat dot com
2010-05-25 14:21 ` swagiaal at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pmuldoon at redhat dot com @ 2010-05-24 6:22 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |11060
nThis| |
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/9946] gdb does not understand DW_TAG_template_value_param
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
2009-09-02 18:37 ` [Bug c++/9946] " tromey at redhat dot com
2010-05-24 6:22 ` pmuldoon at redhat dot com
@ 2010-05-25 14:21 ` swagiaal at redhat dot com
2010-05-25 17:48 ` tromey at redhat dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: swagiaal at redhat dot com @ 2010-05-25 14:21 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |swagiaal at redhat dot com
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/9946] gdb does not understand DW_TAG_template_value_param
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
` (2 preceding siblings ...)
2010-05-25 14:21 ` swagiaal at redhat dot com
@ 2010-05-25 17:48 ` tromey at redhat dot com
2010-05-26 15:27 ` tromey at redhat dot com
2010-07-28 16:25 ` tromey at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-05-25 17:48 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO|11060 |
nThis| |
AssignedTo|unassigned at sourceware dot|tromey at redhat dot com
|org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2010-05-25 17:48:33
date| |
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/9946] gdb does not understand DW_TAG_template_value_param
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
` (3 preceding siblings ...)
2010-05-25 17:48 ` tromey at redhat dot com
@ 2010-05-26 15:27 ` tromey at redhat dot com
2010-07-28 16:25 ` tromey at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-05-26 15:27 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |11060
nThis| |
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/9946] gdb does not understand DW_TAG_template_value_param
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
` (4 preceding siblings ...)
2010-05-26 15:27 ` tromey at redhat dot com
@ 2010-07-28 16:25 ` tromey at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-07-28 16:25 UTC (permalink / raw)
To: gdb-prs
------- 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) <is_cplus_template_function>: 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) <template_symbols>: New field.
* objfiles.c (relocate_one_symbol): New function.
(objfile_relocate1): Use it. Relocate isolated symbols.
* gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
template_arguments>: 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-14 3:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-9946-4717@http.sourceware.org/bugzilla/>
2010-11-14 15:37 ` [Bug c++/9946] gdb does not understand DW_TAG_template_value_param jan.kratochvil at redhat dot com
2009-03-12 18:47 [Bug c++/9946] New: " tromey at redhat dot com
2009-09-02 18:37 ` [Bug c++/9946] " tromey at redhat dot com
2010-05-24 6:22 ` pmuldoon at redhat dot com
2010-05-25 14:21 ` swagiaal at redhat dot com
2010-05-25 17:48 ` tromey at redhat dot com
2010-05-26 15:27 ` tromey at redhat dot com
2010-07-28 16:25 ` tromey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).