--- Comment #9 from jan dot kratochvil at redhat dot com 2009-04-02 21:09
---
Fixed in FSF GDB HEAD:
http://sourceware.org/ml/gdb-patches/2009-03/threads.html#00595
http://sourceware.org/ml/gdb-patches/2009-04/threads.html#00040
http://sourceware.org/ml/gdb-cvs/2009-04/msg00021.html
--- Comment #8 from jakub at gcc dot gnu dot org 2009-03-30 15:23 ---
Fixed on the trunk.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
Status|
--- Comment #7 from jakub at gcc dot gnu dot org 2009-03-30 14:35 ---
Subject: Bug 39563
Author: jakub
Date: Mon Mar 30 14:35:03 2009
New Revision: 145293
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145293
Log:
PR debug/39563
* c-decl.c (struct c_binding): Add
--- Comment #6 from jan dot kratochvil at redhat dot com 2009-03-28 21:34
---
No regressions for GDB.
GDB requires the extra patch otherwise it still does not work with patched GCC:
http://sourceware.org/ml/gdb-patches/2009-03/msg00595.html
FYI the patch generates one extra file-scope
--- Comment #5 from jakub at gcc dot gnu dot org 2009-03-27 20:46 ---
Created an attachment (id=17548)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17548&action=view)
gcc44-pr39563.patch
Patch that actually bootstrapped/regtested successfully.
Jan, could you please test it with g
--- Comment #4 from jakub at gcc dot gnu dot org 2009-03-27 18:19 ---
Created an attachment (id=17547)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17547&action=view)
gcc44-pr39563.patch
Updated patch that preserves the correct location info for the nested extern
decls.
--
ja
--- Comment #3 from jakub at gcc dot gnu dot org 2009-03-27 16:33 ---
Created an attachment (id=17544)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17544&action=view)
gcc44-pr39563.patch
Untested fix.
The problem with this patch is that DW_AT_decl_file and DW_AT_decl_line of the
--- Comment #2 from jakub at gcc dot gnu dot org 2009-03-27 12:38 ---
This seems to be just a C FE problem, C++ FE compiling the exact same testcase
gives the expected output (DW_TAG_lexical_block with DW_TAG_variable with
DW_AT_external). So IMHO just the C FE should be fixed to handle
--- Comment #1 from jan dot kratochvil at redhat dot com 2009-03-26 22:57
---
As DW_AT_external-DW_TAG_variable in the inner block is incompatible with
current GDB
http://sourceware.org/ml/gdb-patches/2009-03/msg00595.html
the current C++ method of DW_TAG_imported_declaration referenci