This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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] Support DW_OP_call2 and DW_OP_call4 (PR 10640)


On Mon, Oct 12, 2009 at 02:43:04PM -0600, Tom Tromey wrote:
> Yeah, I could not think of a way to avoid it either.  I think parsing
> the DWARF while reading would be worse than what you have now, because
> (IIUC) it would negatively impact performance.

This is all part of inter-CU references.  You can't (always) parse it
as you read it in; there can be dependency loops.

I'm confused as to why the "struct symbol" comes into this though.
We're just using it to look up its DWARF location again.  Can we do
this directly off the target DIE?  We don't free up the loaded
.debug_info (partly to support DW_FORM_string).  And we have
infrastructure to load a given CU's dies whenever we need them.

IIUC this would require a different implementation of the baton
for DIEs without a symbol.

-- 
Daniel Jacobowitz
CodeSourcery


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