forked from Imagelibrary/binutils-gdb
Add target_ops argument to to_stop
2014-02-19 Tom Tromey <tromey@redhat.com> * windows-nat.c (windows_stop): Add 'self' argument. * target.h (struct target_ops) <to_stop>: Add argument. * target.c (target_stop): Add argument. (debug_to_stop): Add argument. (update_current_target): Update. * remote.c (remote_stop): Add 'self' argument. * remote-sim.c (gdbsim_stop): Add 'self' argument. (gdbsim_cntrl_c): Update. * remote-m32r-sdi.c (m32r_stop): Add 'self' argument. * procfs.c (procfs_stop): Add 'self' argument. * nto-procfs.c (procfs_stop): Add 'self' argument. * monitor.c (monitor_stop): Add 'self' argument. (monitor_open): Update. * linux-nat.c (linux_nat_stop): Add argument. * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument. * gnu-nat.c (gnu_stop): Add 'self' argument. * darwin-nat.c (darwin_stop): Add 'self' argument.
This commit is contained in:
@@ -61,7 +61,7 @@ static struct target_ops *targ_ops;
|
||||
|
||||
static void monitor_interrupt_query (void);
|
||||
static void monitor_interrupt_twice (int);
|
||||
static void monitor_stop (ptid_t);
|
||||
static void monitor_stop (struct target_ops *self, ptid_t);
|
||||
static void monitor_dump_regs (struct regcache *regcache);
|
||||
|
||||
#if 0
|
||||
@@ -783,7 +783,7 @@ monitor_open (char *args, struct monitor_ops *mon_ops, int from_tty)
|
||||
|
||||
if (current_monitor->stop)
|
||||
{
|
||||
monitor_stop (inferior_ptid);
|
||||
monitor_stop (targ_ops, inferior_ptid);
|
||||
if ((current_monitor->flags & MO_NO_ECHO_ON_OPEN) == 0)
|
||||
{
|
||||
monitor_debug ("EXP Open echo\n");
|
||||
@@ -2267,7 +2267,7 @@ monitor_load (struct target_ops *self, char *args, int from_tty)
|
||||
}
|
||||
|
||||
static void
|
||||
monitor_stop (ptid_t ptid)
|
||||
monitor_stop (struct target_ops *self, ptid_t ptid)
|
||||
{
|
||||
monitor_debug ("MON stop\n");
|
||||
if ((current_monitor->flags & MO_SEND_BREAK_ON_STOP) != 0)
|
||||
|
||||
Reference in New Issue
Block a user