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: [rfc] Call target_pre_inferior *after* clear_solib


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


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