This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Eliminate quadratic slow-down on number of soilibs (part 2).
- From: Tom Tromey <tromey at redhat dot com>
- To: ppluzhnikov at google dot com (Paul Pluzhnikov)
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 18 May 2009 15:27:21 -0600
- Subject: Re: [patch] Eliminate quadratic slow-down on number of soilibs (part 2).
- References: <20090501221639.4FF8A19C4E1@localhost>
- Reply-to: tromey at redhat dot com
>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:
Paul> + {
Paul> + objc_csym = xmalloc (sizeof (*objc_csym));
Paul> + *objc_csym = objfile_csym;
Paul> + set_objfile_data (objfile, objc_objfile_data, objc_csym);
Paul> + }
[...]
Paul> +void
Paul> +_initialize_objc_lang (void)
Paul> +{
Paul> + objc_objfile_data = register_objfile_data ();
Paul> +}
I think this should probably call register_objfile_data_with_cleanup,
so that the per-objfile data can be freed when the objfile is
destroyed.
Tom