* remote.c (remote_disconnect): Add TARGET argument.

* target.c (debug_to_disconnect): Delete.
	(update_current_target): Do not inherit to_disconnect.
	(target_disconnect): Search for a target to implement to_disconnect.
	(setup_target_debug): Do not reference to_disconnect.
	* target.h (struct target_ops): Add target argument to
	to_disconnect.
This commit is contained in:
Daniel Jacobowitz
2006-05-05 20:08:45 +00:00
parent 1f3c39b9e6
commit 597320e75b
4 changed files with 26 additions and 20 deletions

View File

@@ -303,7 +303,7 @@ struct target_ops
void (*to_attach) (char *, int);
void (*to_post_attach) (int);
void (*to_detach) (char *, int);
void (*to_disconnect) (char *, int);
void (*to_disconnect) (struct target_ops *, char *, int);
void (*to_resume) (ptid_t, int, enum target_signal);
ptid_t (*to_wait) (ptid_t, struct target_waitstatus *);
void (*to_fetch_registers) (int);