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.


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel>         * dwarf2read.c (dwarf2_per_objfile): Replace uses of
Joel>         DWARF2_PER_OBJFILE by uses of DATA instead.

This is ok.

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

Tom


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