This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Get rid of previous targets in target_preopen.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 18 Aug 2008 16:22:55 -0400
- Subject: Re: Get rid of previous targets in target_preopen.
- References: <200808111416.21628.pedro@codesourcery.com>
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