aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-07-09 22:49:56 +0000
committerPedro Alves <palves@redhat.com>2008-07-09 22:49:56 +0000
commitf9c72d524f7c66a7ae979f3aa4f7523e16fca2f6 (patch)
tree1fc7474b741e6307bc219d7f3577e4412ee71425 /gdb/monitor.c
parent94cc34afe2c3d9377f1b9cfd481b5822a03c283f (diff)
downloadfsf-binutils-gdb-f9c72d524f7c66a7ae979f3aa4f7523e16fca2f6.zip
fsf-binutils-gdb-f9c72d524f7c66a7ae979f3aa4f7523e16fca2f6.tar.gz
fsf-binutils-gdb-f9c72d524f7c66a7ae979f3aa4f7523e16fca2f6.tar.bz2
Adjust all targets to new target_stop interface.
* gnu-nat.c (gnu_stop): Add ptid argument. * go32-nat.c (go32_stop): Add ptid argument. (go32_create_inferior): Pass inferior_ptid to go32_stop. * hpux-thread.c (hpux_thread_stop): Add ptid argument. * monitor.c (monitor_stop): Add ptid argument. (monitor_open): Pass inferior_ptid to monitor_stop. (monitor_interrupt): Pass inferior_ptid to target_stop. (monitor_stop): Add ptid argument. * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop. (procfs_create_inferior): Add ptid argument. * procfs.c (procfs_stop): Add ptid argument. * remote-m32r-sdi.c (m32r_stop): Add ptid argument. * remote-sim.c (gdbsim_stop): Add ptid argument. * sol-thread.c (sol_thread_stop): Add ptid argument. * win32-nat.c (win32_stop): Add ptid argument.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 5dd597a..69632f6 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -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 (void);
+static void monitor_stop (ptid_t);
static void monitor_dump_regs (struct regcache *regcache);
#if 0
@@ -766,7 +766,7 @@ monitor_open (char *args, struct monitor_ops *mon_ops, int from_tty)
if (current_monitor->stop)
{
- monitor_stop ();
+ monitor_stop (inferior_ptid);
if ((current_monitor->flags & MO_NO_ECHO_ON_OPEN) == 0)
{
monitor_debug ("EXP Open echo\n");
@@ -983,7 +983,7 @@ monitor_interrupt (int signo)
if (monitor_debug_p || remote_debug)
fprintf_unfiltered (gdb_stdlog, "monitor_interrupt called\n");
- target_stop ();
+ target_stop (inferior_ptid);
}
/* The user typed ^C twice. */
@@ -2168,7 +2168,7 @@ monitor_load (char *file, int from_tty)
}
static void
-monitor_stop (void)
+monitor_stop (ptid_t ptid)
{
monitor_debug ("MON stop\n");
if ((current_monitor->flags & MO_SEND_BREAK_ON_STOP) != 0)