2003-10-22 Andrew Cagney <cagney@redhat.com>

* target.c (target_close): New function.
	(debug_to_close): Use "target_close".
	(push_target): Use "target_close".
	(unpush_target): Use "target_close".
	(pop_target): Use "target_close".
	* target.h (struct target_ops): Add "to_xclose".
	(target_open): Delete macro.  Move comment to "to_open".
	(target_close): Replace macro with function that takes a target.
	* top.c (quit_target): Pass "current_target" to "target_close".
This commit is contained in:
Andrew Cagney
2003-10-22 21:39:09 +00:00
parent c9ac89782d
commit f1c07ab0ca
4 changed files with 43 additions and 27 deletions

View File

@@ -1461,7 +1461,7 @@ quit_target (void *arg)
}
/* UDI wants this, to kill the TIP. */
target_close (1);
target_close (&current_target, 1);
/* Save the history information if it is appropriate to do so. */
if (write_history_p && history_filename)