* target.h (struct target_ops): Delete field to_post_wait.
(target_post_wait): Delete macro.
(child_post_wait): Delete declaration.
* target.c (update_current_target, update_current_target)
(debug_to_post_wait, setup_target_debug): Delete functions and
references.
* infttrace.c (ptrace_wait): Delete call to target_post_wait.
* inftarg.c (child_post_wait): Delete.
(init_child_ops): Do not set to_post_wait.
* infptrace.c (ptrace_wait): Delete call to target_post_wait.
* inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
* inf-child.c (inf_child_post_wait): Delete.
(inf_child_target): Do not set to_post_wait.
* inf-ptrace.c (inf_ptrace_post_wait): Delete.
(inf_ptrace_target): Do not set to_post_wait.
2004-09-29 Andrew Cagney <cagney@gnu.org>
+ * target.h (struct target_ops): Delete field to_post_wait.
+ (target_post_wait): Delete macro.
+ (child_post_wait): Delete declaration.
+ * target.c (update_current_target, update_current_target)
+ (debug_to_post_wait, setup_target_debug): Delete functions and
+ references.
+ * infttrace.c (ptrace_wait): Delete call to target_post_wait.
+ * inftarg.c (child_post_wait): Delete.
+ (init_child_ops): Do not set to_post_wait.
+ * infptrace.c (ptrace_wait): Delete call to target_post_wait.
+ * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
+ * inf-child.c (inf_child_post_wait): Delete.
+ (inf_child_target): Do not set to_post_wait.
+ * inf-ptrace.c (inf_ptrace_post_wait): Delete.
+ (inf_ptrace_target): Do not set to_post_wait.
+
* wince.c (child_ops): Delete.
* win32-nat.c (child_ops): Delete.
{
}
-void
-inf_child_post_wait (ptid_t ptid, int wait_status)
-{
- /* This version of Unix doesn't require a meaningful "post wait"
- operation. */
-}
-
static void
inf_child_post_attach (int pid)
{
t->to_doc = "Unix child process (started by the \"run\" command).";
t->to_open = inf_child_open;
t->to_post_attach = inf_child_post_attach;
- t->to_post_wait = inf_child_post_wait;
t->to_fetch_registers = inf_child_fetch_inferior_registers;
t->to_store_registers = inf_child_store_inferior_registers;
t->to_prepare_to_store = inf_child_prepare_to_store;
set_sigio_trap ();
pid = wait (&status);
- target_post_wait (pid_to_ptid (pid), status);
save_errno = errno;
return pid_to_ptid (pid);
}
-void
-inf_ptrace_post_wait (ptid_t ptid, int wait_status)
-{
- /* This version of Unix doesn't require a meaningful "post wait"
- operation.
- */
-}
-
/* Check to see if the given thread is alive.
FIXME: Is kill() ever the right way to do this? I doubt it, but
t->to_detach = inf_ptrace_detach;
t->to_resume = inf_ptrace_resume;
t->to_wait = inf_ptrace_wait;
- t->to_post_wait = inf_ptrace_post_wait;
t->to_prepare_to_store = inf_ptrace_prepare_to_store;
t->to_xfer_memory = inf_ptrace_xfer_memory;
t->to_xfer_partial = inf_ptrace_xfer_partial;
int wstate;
wstate = wait (status);
- target_post_wait (pid_to_ptid (wstate), *status);
return wstate;
}
static ptid_t child_wait (ptid_t, struct target_waitstatus *);
#endif /* CHILD_WAIT */
-#if !defined(CHILD_POST_WAIT)
-void child_post_wait (ptid_t, int);
-#endif
-
static void child_open (char *, int);
static void child_files_info (struct target_ops *);
}
#endif /* CHILD_WAIT */
-#if !defined(CHILD_POST_WAIT)
-void
-child_post_wait (ptid_t ptid, int wait_status)
-{
- /* This version of Unix doesn't require a meaningful "post wait"
- operation.
- */
-}
-#endif
-
-
#ifndef CHILD_THREAD_ALIVE
/* Check to see if the given thread is alive.
child_ops.to_detach = child_detach;
child_ops.to_resume = child_resume;
child_ops.to_wait = child_wait;
- child_ops.to_post_wait = child_post_wait;
child_ops.to_fetch_registers = fetch_inferior_registers;
child_ops.to_store_registers = store_inferior_registers;
child_ops.to_prepare_to_store = child_prepare_to_store;
*status = _SIGTRAP;
}
- target_post_wait (pid_to_ptid (tsp.tts_pid), *status);
-
-
#ifdef THREAD_DEBUG
if (debug_on)
printf ("Done waiting, pid is %d, tid %d\n", real_pid, real_tid);
INHERIT (to_disconnect, t);
INHERIT (to_resume, t);
INHERIT (to_wait, t);
- INHERIT (to_post_wait, t);
INHERIT (to_fetch_registers, t);
INHERIT (to_store_registers, t);
INHERIT (to_prepare_to_store, t);
de_fault (to_wait,
(ptid_t (*) (ptid_t, struct target_waitstatus *))
noprocess);
- de_fault (to_post_wait,
- (void (*) (ptid_t, int))
- target_ignore);
de_fault (to_fetch_registers,
(void (*) (int))
target_ignore);
return retval;
}
-static void
-debug_to_post_wait (ptid_t ptid, int status)
-{
- debug_target.to_post_wait (ptid, status);
-
- fprintf_unfiltered (gdb_stdlog, "target_post_wait (%d, %d)\n",
- PIDGET (ptid), status);
-}
-
static void
debug_print_register (const char * func, int regno)
{
current_target.to_disconnect = debug_to_disconnect;
current_target.to_resume = debug_to_resume;
current_target.to_wait = debug_to_wait;
- current_target.to_post_wait = debug_to_post_wait;
current_target.to_fetch_registers = debug_to_fetch_registers;
current_target.to_store_registers = debug_to_store_registers;
current_target.to_prepare_to_store = debug_to_prepare_to_store;
void (*to_disconnect) (char *, int);
void (*to_resume) (ptid_t, int, enum target_signal);
ptid_t (*to_wait) (ptid_t, struct target_waitstatus *);
- void (*to_post_wait) (ptid_t, int);
void (*to_fetch_registers) (int);
void (*to_store_registers) (int);
void (*to_prepare_to_store) (void);
#define target_wait(ptid, status) \
(*current_target.to_wait) (ptid, status)
-/* The target_wait operation waits for a process event to occur, and
- thereby stop the process.
-
- On some targets, certain events may happen in sequences. gdb's
- correct response to any single event of such a sequence may require
- knowledge of what earlier events in the sequence have been seen.
-
- This operation provides a target-specific hook that allows the
- necessary bookkeeping to be performed to track such sequences. */
-
-#define target_post_wait(ptid, status) \
- (*current_target.to_post_wait) (ptid, status)
-
/* Fetch at least register REGNO, or all regs if regno == -1. No result. */
#define target_fetch_registers(regno) \
extern void child_post_attach (int);
#endif
-extern void child_post_wait (ptid_t, int);
-
extern void child_post_startup_inferior (ptid_t);
extern void child_acknowledge_created_inferior (int);