diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-08-17 18:22:25 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-08-17 18:22:25 +0000 |
commit | 4de4c07c6b48659ae212352236be9413c853a23c (patch) | |
tree | 5aeb62d1cb427760fda2a718d4faf154963827a7 /gdb/linux-nat.h | |
parent | 2b66634babe795d9b28487625b8e701fff866482 (diff) | |
download | gdb-4de4c07c6b48659ae212352236be9413c853a23c.zip gdb-4de4c07c6b48659ae212352236be9413c853a23c.tar.gz gdb-4de4c07c6b48659ae212352236be9413c853a23c.tar.bz2 |
* Makefile.in (i386-linux-nat.o): Update dependencies.
* config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
* config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
(CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
* i386-linux-nat.c: Include "linux-nat.h".
(child_post_startup_inferior): New function.
* i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
* infptrace.c (kill_inferior): Wrap in #ifdef.
* lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
attaching to each LWP.
(child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
(init_lin_lwp_ops): Fill in some more operations.
* linux-nat.h (linux_enable_event_reporting)
(linux_handle_extended_wait, linux_child_post_startup_inferior): New
prototypes.
* linux-nat.c (linux_enable_event_reporting): New function.
(child_post_attach, linux_child_post_startup_inferior)
(child_post_startup_inferior, child_follow_fork)
(linux_handle_extended_wait, kill_inferior): New functions.
Diffstat (limited to 'gdb/linux-nat.h')
-rw-r--r-- | gdb/linux-nat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h index b0d9600..90652aa 100644 --- a/gdb/linux-nat.h +++ b/gdb/linux-nat.h @@ -65,7 +65,12 @@ extern int linux_proc_xfer_memory (CORE_ADDR addr, char *myaddr, int len, int write, struct mem_attrib *attrib, struct target_ops *target); +/* linux-nat functions for handling fork events. */ extern void linux_record_stopped_pid (int pid); +extern void linux_enable_event_reporting (ptid_t ptid); +extern ptid_t linux_handle_extended_wait (int pid, int status, + struct target_waitstatus *ourstatus); +extern void linux_child_post_startup_inferior (ptid_t ptid); /* Iterator function for lin-lwp's lwp list. */ struct lwp_info *iterate_over_lwps (int (*callback) (struct lwp_info *, |