aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-29 15:33:02 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-29 15:33:02 +0000
commita182eed6e25da26d08047ce884748547da0c0b36 (patch)
treee967da8af7fd1e6806be2e2f635daa8f4a282e63 /gdb/target.c
parentba0c540b35a315312f8e85cd01e00d060b771cc6 (diff)
downloadgdb-a182eed6e25da26d08047ce884748547da0c0b36.zip
gdb-a182eed6e25da26d08047ce884748547da0c0b36.tar.gz
gdb-a182eed6e25da26d08047ce884748547da0c0b36.tar.bz2
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/target.c b/gdb/target.c
index ab0f814..b390114 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -385,7 +385,6 @@ update_current_target (void)
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);
@@ -487,9 +486,6 @@ update_current_target (void)
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);
@@ -1747,15 +1743,6 @@ debug_to_wait (ptid_t ptid, struct target_waitstatus *status)
}
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)
{
fprintf_unfiltered (gdb_stdlog, "%s ", func);
@@ -2346,7 +2333,6 @@ setup_target_debug (void)
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;