This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Call target_pre_inferior *after* clear_solib
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 30 May 2008 16:22:39 -0400
- Subject: Re: [rfc] Call target_pre_inferior *after* clear_solib
- References: <200805301817.m4UIHo6A010684@d12av02.megacenter.de.ibm.com>
On Fri, May 30, 2008 at 08:17:50PM +0200, Ulrich Weigand wrote:
> - /* Clean up any leftovers from other runs. Some other things from
> - this function should probably be moved into target_pre_inferior. */
> - target_pre_inferior (from_tty);
> -
> /* Purge old solib objfiles. */
> objfile_purge_solibs ();
>
> clear_solib ();
>
> + /* Clean up any leftovers from other runs. Some other things from
> + this function should probably be moved into target_pre_inferior. */
> + target_pre_inferior (from_tty);
> +
If the order is important, perhaps those two should move into
target_pre_inferior?
The other option could be to clean up the handling of solibs so that
each solib_ops gets a chance to discard. I've long suspected we
should allow more than a 1:1 relationship.
--
Daniel Jacobowitz
CodeSourcery