This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/DWARF] do not use dwarf2_per_objfile in dwarf2_per_objfile_free.
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org, Doug Evans <dje at google dot com>
- Date: Tue, 18 Jun 2013 09:36:50 -0600
- Subject: Re: [RFA/DWARF] do not use dwarf2_per_objfile in dwarf2_per_objfile_free.
- References: <1370884394-16360-1-git-send-email-brobecker at adacore dot com>
>>>>> "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