public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces
@ 2009-05-11 18:27 dodji at gcc dot gnu dot org
2009-05-11 18:30 ` [Bug debug/40109] " dodji at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-11 18:27 UTC (permalink / raw)
To: gcc-bugs
The following program:
namespace A{
class B{
};
typedef A::B AB;
}
int main(){
A::AB ab;
return 0;
}
compiled with gcc generates the following debug info:
...
<1><43>: Abbrev Number: 5 (DW_TAG_subprogram)
<44> DW_AT_external : 1
<45> DW_AT_name : (indirect string, offset: 0x4c): main
<49> DW_AT_decl_file : 1
<4a> DW_AT_decl_line : 10
<4b> DW_AT_type : <0x91>
<4f> DW_AT_low_pc : 0x40053c
<57> DW_AT_high_pc : 0x400547
<5f> DW_AT_frame_base : 0x0 (location list)
<63> DW_AT_sibling : <0x91>
<2><67>: Abbrev Number: 6 (DW_TAG_lexical_block)
<68> DW_AT_low_pc : 0x400540
<70> DW_AT_high_pc : 0x400545
<3><78>: Abbrev Number: 7 (DW_TAG_typedef)
<79> DW_AT_name : AB
<7c> DW_AT_decl_file : 1
<7d> DW_AT_decl_line : 7
<7e> DW_AT_type : <0x3b>
...
The typedef tag <78> is a child of subprogram main instead of
namespace A.
--
Summary: Incorrect debug info nesting for typedef statements
within namespaces
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dodji at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
@ 2009-05-11 18:30 ` dodji at gcc dot gnu dot org
2009-05-13 14:59 ` dodji at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-11 18:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dodji at gcc dot gnu dot org 2009-05-11 18:29 -------
Created an attachment (id=17853)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17853&action=view)
Candidate fix
I have tested this patch. It bootstraps and passes regtest on trunk.
I need to test it on the branches.
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dodji at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
2009-05-11 18:30 ` [Bug debug/40109] " dodji at gcc dot gnu dot org
@ 2009-05-13 14:59 ` dodji at gcc dot gnu dot org
2009-05-18 19:20 ` dodji at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-13 14:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dodji at gcc dot gnu dot org 2009-05-13 14:58 -------
Patch submitted for review at
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00706.html.
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary| Incorrect debug info |Incorrect debug info nesting
|nesting for typedef |for typedef statements
|statements within namespaces|within namespaces
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
2009-05-11 18:30 ` [Bug debug/40109] " dodji at gcc dot gnu dot org
2009-05-13 14:59 ` dodji at gcc dot gnu dot org
@ 2009-05-18 19:20 ` dodji at gcc dot gnu dot org
2009-05-18 19:24 ` dodji at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-18 19:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dodji at gcc dot gnu dot org 2009-05-18 19:20 -------
Subject: Bug 40109
Author: dodji
Date: Mon May 18 19:19:52 2009
New Revision: 147674
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147674
Log:
Fix for PR debug/40109
gcc/ChangeLog:
PR debug/40109
* dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
child of the containing namespace's DIE.
gcc/testsuite/ChangeLog:
PR debug/40109
* g++.dg/debug/dwarf2/nested-1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-05-18 19:20 ` dodji at gcc dot gnu dot org
@ 2009-05-18 19:24 ` dodji at gcc dot gnu dot org
2009-05-18 19:27 ` dodji at gcc dot gnu dot org
2009-05-18 19:29 ` dodji at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-18 19:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dodji at gcc dot gnu dot org 2009-05-18 19:24 -------
Subject: Bug 40109
Author: dodji
Date: Mon May 18 19:24:17 2009
New Revision: 147675
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147675
Log:
Candidate Fix for PR debug/40109
gcc/ChangeLog:
PR debug/40109
* dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
child of the containing namespace's DIE.
gcc/testsuite/ChangeLog:
PR debug/40109
* g++.dg/debug/dwarf2/nested-1.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/dwarf2out.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-05-18 19:24 ` dodji at gcc dot gnu dot org
@ 2009-05-18 19:27 ` dodji at gcc dot gnu dot org
2009-05-18 19:29 ` dodji at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-18 19:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dodji at gcc dot gnu dot org 2009-05-18 19:26 -------
Subject: Bug 40109
Author: dodji
Date: Mon May 18 19:26:41 2009
New Revision: 147676
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147676
Log:
Fix for PR debug/40109
gcc/ChangeLog:
PR debug/40109
* dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
child of the containing namespace's DIE.
gcc/testsuite/ChangeLog:
PR debug/40109
* g++.dg/debug/dwarf2/nested-1.C: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/dwarf2out.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-05-18 19:27 ` dodji at gcc dot gnu dot org
@ 2009-05-18 19:29 ` dodji at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: dodji at gcc dot gnu dot org @ 2009-05-18 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dodji at gcc dot gnu dot org 2009-05-18 19:29 -------
Fixed in 4.5, 4.4 and 4.3.
--
dodji at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces
[not found] <bug-40109-4@http.gcc.gnu.org/bugzilla/>
@ 2013-08-19 23:04 ` jakub at gcc dot gnu.org
0 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-19 23:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jimb@red-bean.com
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 36266 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-08-19 23:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-11 18:27 [Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces dodji at gcc dot gnu dot org
2009-05-11 18:30 ` [Bug debug/40109] " dodji at gcc dot gnu dot org
2009-05-13 14:59 ` dodji at gcc dot gnu dot org
2009-05-18 19:20 ` dodji at gcc dot gnu dot org
2009-05-18 19:24 ` dodji at gcc dot gnu dot org
2009-05-18 19:27 ` dodji at gcc dot gnu dot org
2009-05-18 19:29 ` dodji at gcc dot gnu dot org
[not found] <bug-40109-4@http.gcc.gnu.org/bugzilla/>
2013-08-19 23:04 ` jakub at gcc dot gnu.org
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).