Get rid of previous targets in target_preopen.
Daniel Jacobowitz
drow@false.org
Mon Aug 18 20:23:00 GMT 2008
On Mon, Aug 11, 2008 at 02:16:21PM +0100, Pedro Alves wrote:
> 2008-08-11 Pedro Alves <pedro@codesourcery.com>
>
> * corelow.c (core_open): Assume there was no upper layer left
> behind from a previous inferior.
> * target.c (pop_all_targets): Rename to ...
> (pop_all_targets_above): ... this. Add a target stratum
> parameter. Use it instead of hardcoding the dummy_stratum.
> (pop_all_targets): New, defer to pop_all_targets_above.
> (target_preopen): Use pop_all_targets_above.
> * target.h (target_stratum): New.
> (pop_all_targets_above): Declare.
Is target_stratum for some other patch? It's unused here.
Without that, the patch is OK.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list