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: Get rid of previous targets in target_preopen.


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


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