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: [RFA/DWARF] do not use dwarf2_per_objfile in dwarf2_per_objfile_free.


Tom> You could consider setting 'dwarf2_per_objfile = NULL' at the start of
Tom> the function, to try to prevent future bugs along these lines.

Joel> I certainly could, if you'd like. I am a little afraid of what might
Joel> happen if I do, though ;-).

I'll give it a try.

I think the intent for this module is that all entry routes into
dwarf2read from the outside ought to set up dwarf2_per_objfile,
generally via dw2_setup.  Arguably the deletion function should do so
too; but NULLing seems just as good.

Tom


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