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: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Doug Evans <dje at google dot com>
- Date: Tue, 18 Jun 2013 16:37:16 -0700
- 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> <87sj0f8m7h dot fsf at fleche dot redhat 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.
Thanks, Tom. Applied.
> You could consider setting 'dwarf2_per_objfile = NULL' at the start of
> the function, to try to prevent future bugs along these lines.
I certainly could, if you'd like. I am a little afraid of what might
happen if I do, though ;-).
--
Joel