Add a target_ops parameter to the to_kill method in struct target_ops.
* target.h (struct target_ops): Add a "target_ops *" parameter to method to_kill. (target_kill): Remove macro. Add declaration. * target.c (debug_to_kill): Delete, no longer necessary. (target_kill): New function. (update_current_target): Stop inheriting the to_kill method. Do not de_fault it to no_process either. (setup_target_debug): Do not set current_target.to_kill. * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c, linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update accordingly.
This commit is contained in:
parent
14064aa202
commit
7d85a9c0e3
17 changed files with 63 additions and 44 deletions
|
@ -111,7 +111,7 @@ static void remote_send (char **buf, long *sizeof_buf_p);
|
|||
|
||||
static int readchar (int timeout);
|
||||
|
||||
static void remote_kill (void);
|
||||
static void remote_kill (struct target_ops *ops);
|
||||
|
||||
static int tohex (int nib);
|
||||
|
||||
|
@ -6528,7 +6528,7 @@ getpkt_or_notif_sane (char **buf, long *sizeof_buf, int forever)
|
|||
|
||||
|
||||
static void
|
||||
remote_kill (void)
|
||||
remote_kill (struct target_ops *ops)
|
||||
{
|
||||
/* Use catch_errors so the user can quit from gdb even when we
|
||||
aren't on speaking terms with the remote system. */
|
||||
|
@ -6560,7 +6560,7 @@ remote_vkill (int pid, struct remote_state *rs)
|
|||
}
|
||||
|
||||
static void
|
||||
extended_remote_kill (void)
|
||||
extended_remote_kill (struct target_ops *ops)
|
||||
{
|
||||
int res;
|
||||
int pid = ptid_get_pid (inferior_ptid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue