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.
This commit is contained in:
parent
94cc34afe2
commit
f9c72d524f
12 changed files with 43 additions and 23 deletions
|
@ -1,3 +1,23 @@
|
||||||
|
2008-07-09 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2008-07-09 Pedro Alves <pedro@codesourcery.com>
|
2008-07-09 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
Non-stop inferior control.
|
Non-stop inferior control.
|
||||||
|
|
|
@ -2216,7 +2216,7 @@ gnu_open (char *arg, int from_tty)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gnu_stop (void)
|
gnu_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
error (_("to_stop target function not implemented"));
|
error (_("to_stop target function not implemented"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ static int go32_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
|
||||||
struct mem_attrib *attrib,
|
struct mem_attrib *attrib,
|
||||||
struct target_ops *target);
|
struct target_ops *target);
|
||||||
static void go32_files_info (struct target_ops *target);
|
static void go32_files_info (struct target_ops *target);
|
||||||
static void go32_stop (void);
|
static void go32_stop (ptid_t);
|
||||||
static void go32_kill_inferior (void);
|
static void go32_kill_inferior (void);
|
||||||
static void go32_create_inferior (char *exec_file, char *args, char **env, int from_tty);
|
static void go32_create_inferior (char *exec_file, char *args, char **env, int from_tty);
|
||||||
static void go32_mourn_inferior (void);
|
static void go32_mourn_inferior (void);
|
||||||
|
@ -560,7 +560,7 @@ go32_files_info (struct target_ops *target)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
go32_stop (void)
|
go32_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
normal_stop ();
|
normal_stop ();
|
||||||
cleanup_client ();
|
cleanup_client ();
|
||||||
|
@ -593,7 +593,7 @@ go32_create_inferior (char *exec_file, char *args, char **env, int from_tty)
|
||||||
|
|
||||||
if (prog_has_started)
|
if (prog_has_started)
|
||||||
{
|
{
|
||||||
go32_stop ();
|
go32_stop (inferior_ptid);
|
||||||
go32_kill_inferior ();
|
go32_kill_inferior ();
|
||||||
}
|
}
|
||||||
resume_signal = -1;
|
resume_signal = -1;
|
||||||
|
|
|
@ -505,9 +505,9 @@ hpux_thread_alive (ptid_t ptid)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hpux_thread_stop (void)
|
hpux_thread_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
deprecated_child_ops.to_stop ();
|
deprecated_child_ops.to_stop (ptid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert a pid to printable form. */
|
/* Convert a pid to printable form. */
|
||||||
|
|
|
@ -61,7 +61,7 @@ static struct target_ops *targ_ops;
|
||||||
|
|
||||||
static void monitor_interrupt_query (void);
|
static void monitor_interrupt_query (void);
|
||||||
static void monitor_interrupt_twice (int);
|
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);
|
static void monitor_dump_regs (struct regcache *regcache);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -766,7 +766,7 @@ monitor_open (char *args, struct monitor_ops *mon_ops, int from_tty)
|
||||||
|
|
||||||
if (current_monitor->stop)
|
if (current_monitor->stop)
|
||||||
{
|
{
|
||||||
monitor_stop ();
|
monitor_stop (inferior_ptid);
|
||||||
if ((current_monitor->flags & MO_NO_ECHO_ON_OPEN) == 0)
|
if ((current_monitor->flags & MO_NO_ECHO_ON_OPEN) == 0)
|
||||||
{
|
{
|
||||||
monitor_debug ("EXP Open echo\n");
|
monitor_debug ("EXP Open echo\n");
|
||||||
|
@ -983,7 +983,7 @@ monitor_interrupt (int signo)
|
||||||
if (monitor_debug_p || remote_debug)
|
if (monitor_debug_p || remote_debug)
|
||||||
fprintf_unfiltered (gdb_stdlog, "monitor_interrupt called\n");
|
fprintf_unfiltered (gdb_stdlog, "monitor_interrupt called\n");
|
||||||
|
|
||||||
target_stop ();
|
target_stop (inferior_ptid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The user typed ^C twice. */
|
/* The user typed ^C twice. */
|
||||||
|
@ -2168,7 +2168,7 @@ monitor_load (char *file, int from_tty)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
monitor_stop (void)
|
monitor_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
monitor_debug ("MON stop\n");
|
monitor_debug ("MON stop\n");
|
||||||
if ((current_monitor->flags & MO_SEND_BREAK_ON_STOP) != 0)
|
if ((current_monitor->flags & MO_SEND_BREAK_ON_STOP) != 0)
|
||||||
|
|
|
@ -607,7 +607,7 @@ nto_interrupt (int signo)
|
||||||
/* If this doesn't work, try more severe steps. */
|
/* If this doesn't work, try more severe steps. */
|
||||||
signal (signo, nto_interrupt_twice);
|
signal (signo, nto_interrupt_twice);
|
||||||
|
|
||||||
target_stop ();
|
target_stop (inferior_ptid);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ptid_t
|
static ptid_t
|
||||||
|
@ -1094,7 +1094,7 @@ procfs_create_inferior (char *exec_file, char *allargs, char **env,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
procfs_stop (void)
|
procfs_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
devctl (ctl_fd, DCMD_PROC_STOP, NULL, 0, 0);
|
devctl (ctl_fd, DCMD_PROC_STOP, NULL, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ static void procfs_attach (char *, int);
|
||||||
static void procfs_detach (char *, int);
|
static void procfs_detach (char *, int);
|
||||||
static void procfs_resume (ptid_t, int, enum target_signal);
|
static void procfs_resume (ptid_t, int, enum target_signal);
|
||||||
static int procfs_can_run (void);
|
static int procfs_can_run (void);
|
||||||
static void procfs_stop (void);
|
static void procfs_stop (ptid_t);
|
||||||
static void procfs_files_info (struct target_ops *);
|
static void procfs_files_info (struct target_ops *);
|
||||||
static void procfs_fetch_registers (struct regcache *, int);
|
static void procfs_fetch_registers (struct regcache *, int);
|
||||||
static void procfs_store_registers (struct regcache *, int);
|
static void procfs_store_registers (struct regcache *, int);
|
||||||
|
@ -4756,7 +4756,7 @@ procfs_can_run (void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
procfs_stop (void)
|
procfs_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
kill (-inferior_process_group, SIGINT);
|
kill (-inferior_process_group, SIGINT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1391,7 +1391,7 @@ m32r_load (char *args, int from_tty)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
m32r_stop (void)
|
m32r_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
if (remote_debug)
|
if (remote_debug)
|
||||||
fprintf_unfiltered (gdb_stdlog, "m32r_stop()\n");
|
fprintf_unfiltered (gdb_stdlog, "m32r_stop()\n");
|
||||||
|
|
|
@ -96,7 +96,7 @@ static void gdbsim_files_info (struct target_ops *target);
|
||||||
|
|
||||||
static void gdbsim_mourn_inferior (void);
|
static void gdbsim_mourn_inferior (void);
|
||||||
|
|
||||||
static void gdbsim_stop (void);
|
static void gdbsim_stop (ptid_t ptid);
|
||||||
|
|
||||||
void simulator_command (char *args, int from_tty);
|
void simulator_command (char *args, int from_tty);
|
||||||
|
|
||||||
|
@ -643,7 +643,7 @@ gdbsim_resume (ptid_t ptid, int step, enum target_signal siggnal)
|
||||||
For simulators that do not support this operation, just abort */
|
For simulators that do not support this operation, just abort */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdbsim_stop (void)
|
gdbsim_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
if (!sim_stop (gdbsim_desc))
|
if (!sim_stop (gdbsim_desc))
|
||||||
{
|
{
|
||||||
|
|
|
@ -881,9 +881,9 @@ sol_thread_alive (ptid_t ptid)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sol_thread_stop (void)
|
sol_thread_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
procfs_ops.to_stop ();
|
procfs_ops.to_stop (ptid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* These routines implement the lower half of the thread_db interface,
|
/* These routines implement the lower half of the thread_db interface,
|
||||||
|
|
|
@ -105,7 +105,7 @@ static int debug_registers_used;
|
||||||
#define DEBUG_MEM(x) if (debug_memory) printf_unfiltered x
|
#define DEBUG_MEM(x) if (debug_memory) printf_unfiltered x
|
||||||
#define DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x
|
#define DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x
|
||||||
|
|
||||||
static void win32_stop (void);
|
static void win32_stop (ptid_t);
|
||||||
static int win32_win32_thread_alive (ptid_t);
|
static int win32_win32_thread_alive (ptid_t);
|
||||||
static void win32_kill_inferior (void);
|
static void win32_kill_inferior (void);
|
||||||
|
|
||||||
|
@ -1928,7 +1928,7 @@ win32_mourn_inferior (void)
|
||||||
^C on the controlling terminal. */
|
^C on the controlling terminal. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
win32_stop (void)
|
win32_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
DEBUG_EVENTS (("gdb: GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)\n"));
|
DEBUG_EVENTS (("gdb: GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)\n"));
|
||||||
CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, current_event.dwProcessId));
|
CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, current_event.dwProcessId));
|
||||||
|
|
|
@ -105,7 +105,7 @@ static int debug_registers_used;
|
||||||
#define DEBUG_MEM(x) if (debug_memory) printf_unfiltered x
|
#define DEBUG_MEM(x) if (debug_memory) printf_unfiltered x
|
||||||
#define DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x
|
#define DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x
|
||||||
|
|
||||||
static void win32_stop (void);
|
static void win32_stop (ptid_t);
|
||||||
static int win32_win32_thread_alive (ptid_t);
|
static int win32_win32_thread_alive (ptid_t);
|
||||||
static void win32_kill_inferior (void);
|
static void win32_kill_inferior (void);
|
||||||
|
|
||||||
|
@ -1928,7 +1928,7 @@ win32_mourn_inferior (void)
|
||||||
^C on the controlling terminal. */
|
^C on the controlling terminal. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
win32_stop (void)
|
win32_stop (ptid_t ptid)
|
||||||
{
|
{
|
||||||
DEBUG_EVENTS (("gdb: GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)\n"));
|
DEBUG_EVENTS (("gdb: GenerateConsoleCtrlEvent (CTRLC_EVENT, 0)\n"));
|
||||||
CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, current_event.dwProcessId));
|
CHECK (GenerateConsoleCtrlEvent (CTRL_C_EVENT, current_event.dwProcessId));
|
||||||
|
|
Loading…
Reference in a new issue