diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-11-16 19:22:59 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-11-16 19:22:59 +0000 |
commit | 47932f85ce27bcf18f485c2492dfafb02132dce9 (patch) | |
tree | f64276eec5b4178f035fc9e7f5d4476c18be0c61 /gdb/infttrace.c | |
parent | 4088142aaeb229390c53957ab465955725d43b17 (diff) | |
download | gdb-47932f85ce27bcf18f485c2492dfafb02132dce9.zip gdb-47932f85ce27bcf18f485c2492dfafb02132dce9.tar.gz gdb-47932f85ce27bcf18f485c2492dfafb02132dce9.tar.bz2 |
* breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
inferior_has_vforked, and inferior_has_execd instead of
target_has_forked, target_has_vforked, and target_has_execd.
* config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
(CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
(CHILD_WAIT): Define.
(child_wait): Add prototype.
* hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
Add prototype.
(hpux_has_vforked): Likewise, from child_has_vforked.
(hpux_has_execd): Likewise, from child_has_execd.
(hpux_has_syscall_event): Likewise, from child_has_syscall_event.
(not_same_real_pid, child_wait): New, copied from inftarg.c.
Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
and hpux_has_syscall_event instead of the target hooks.
* infrun.c (inferior_has_forked, inferior_has_vforked)
(inferior_has_execd): New functions.
* inftarg.c (not_same_real_pid): Remove.
(child_wait): Remove references to not_same_real_pid,
target_has_forked, target_has_vforked, target_has_execd,
and target_has_syscall_event.
(child_has_forked, child_has_vforked, child_has_execd)
(child_has_syscall_event): Remove.
(init_child_ops): Remove references to child_has_forked,
child_has_vforked, child_has_execd, and child_has_syscall_event.
* infttrace.c (hpux_has_forked): Rename from child_has_forked.
(hpux_has_vforked): Likewise, from child_has_vforked.
(hpux_has_execd): Likewise, from child_has_execd.
(hpux_has_syscall_event): Likewise, from child_has_syscall_event.
* target.c (cleanup_target): Remove references to
to_has_forked, to_has_vforked, to_has_execd, and
to_has_syscall_event.
(update_current_target): Likewise.
(setup_target_debug): Likewise.
(debug_to_has_forked): Remove.
(debug_to_has_vforked): Remove.
(debug_to_has_execd): Remove.
(debug_to_has_syscall_event): Remove.
* target.h (struct target_ops): Remove to_has_forked.
to_has_vforked, to_has_execd, and to_has_syscall_event.
(child_has_forked, child_has_vforked, child_has_execd)
(child_has_syscall_event): Remove prototypes.
(inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
prototypes.
(target_has_forked, target_has_vforked, target_has_execd)
(target_has_syscall_event): Remove macros.
Diffstat (limited to 'gdb/infttrace.c')
-rw-r--r-- | gdb/infttrace.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c index 98c70b9..7f0910f 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -2289,7 +2289,7 @@ call_ttrace_wait (int pid, ttwopt_t option, ttstate_t *tsp, size_t tsp_size) thread descriptor. This caches the state. The implementation of queries like - target_has_execd can then use this cached state, rather than + hpux_has_execd can then use this cached state, rather than be forced to make an explicit ttrace call to get it. (Guard against the condition that this is the first time we've @@ -3357,8 +3357,6 @@ child_remove_vfork_catchpoint (int tid) } #endif -#if defined(CHILD_HAS_FORKED) - /* Q: Do we need to map the returned process ID to a thread ID? * A: I don't think so--here we want a _real_ pid. Any later @@ -3366,7 +3364,7 @@ child_remove_vfork_catchpoint (int tid) * start the mapping. */ int -child_has_forked (int tid, int *childpid) +hpux_has_forked (int tid, int *childpid) { int tt_status; ttstate_t ttrace_state; @@ -3403,15 +3401,11 @@ child_has_forked (int tid, int *childpid) return 0; } -#endif - - -#if defined(CHILD_HAS_VFORKED) -/* See child_has_forked for pid discussion. +/* See hpux_has_forked for pid discussion. */ int -child_has_vforked (int tid, int *childpid) +hpux_has_vforked (int tid, int *childpid) { int tt_status; ttstate_t ttrace_state; @@ -3446,7 +3440,6 @@ child_has_vforked (int tid, int *childpid) return 0; } -#endif #if defined(CHILD_INSERT_EXEC_CATCHPOINT) @@ -3475,9 +3468,8 @@ child_remove_exec_catchpoint (int tid) #endif -#if defined(CHILD_HAS_EXECD) int -child_has_execd (int tid, char **execd_pathname) +hpux_has_execd (int tid, char **execd_pathname) { int tt_status; ttstate_t ttrace_state; @@ -3516,12 +3508,10 @@ child_has_execd (int tid, char **execd_pathname) return 0; } -#endif -#if defined(CHILD_HAS_SYSCALL_EVENT) int -child_has_syscall_event (int pid, enum target_waitkind *kind, int *syscall_id) +hpux_has_syscall_event (int pid, enum target_waitkind *kind, int *syscall_id) { int tt_status; ttstate_t ttrace_state; @@ -3561,7 +3551,6 @@ child_has_syscall_event (int pid, enum target_waitkind *kind, int *syscall_id) *syscall_id = ttrace_state.tts_scno; return 1; } -#endif |