This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix early debug regression with DW_AT_string_length (PR debug/71906)


On Tue, Aug 09, 2016 at 07:10:34PM +0200, Richard Biener wrote:
> >In some cases like location of file scope vars, or this
> >DW_AT_string_length,
> >you really need to adjust late the debug info created early, there is
> >no
> >workaround for that.
> 
> I suppose the workaround is to fix/extend DWARF... (DW_AT_GNU_string_length that allows us to refer to another DIE?)

Introducing another attribute that does the same thing as existing attribute
would be way too ugly.  In theory the reference class could be added to
DW_AT_string_length, I can ask on DWARF workgroup (but it might be too late
for DWARF 5), but that still doesn't solve the issue of the indirect params.

How do you want to handle the debug info without ammending the early-generated
DWARF though?  Just by using it as abstract origins of everything and
ammending in copies?  That would be a total mess for all the consumers...
Parsing DWARF and rewriting it isn't all that hard.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]