aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
AgeCommit message (Collapse)AuthorFilesLines
2003-08-17 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.Daniel Jacobowitz1-11/+137
(PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define. (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable. (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag. (linux_supports_tracevforkdone): New function. (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and TRACEVFORKDONE. (child_follow_fork): Handle vfork. (linux_handle_extended_wait): Likewise. Also handle exec. (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable. * NEWS: Mention fork tracing.
2003-08-17 * Makefile.in (i386-linux-nat.o): Update dependencies.Daniel Jacobowitz1-3/+178
* 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.
2003-06-192003-06-19 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+2
* linux-nat.h: New file. * linux-nat.c: Include linux-nat.h. * lin-lwp.c: Include linux-nat.h. Move struct lwp_info def to linux-nat.h. * linux-proc.c: Include linux-nat.h. (linux_make_note_section): Iterate over lwps instead of threads. (linux_do_thread_registers): Use lwp instead of merged pid. * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h. * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o): Add dependency on linux_nat_h.
2003-06-18 * config/nm-linux.h (linux_record_stopped_pid): New prototype.Daniel Jacobowitz1-0/+41
* lin-lwp.c (child_wait): Call linux_record_stopped_pid. (lin_lwp_wait): Likewise. Update comments. * linux-nat.c (struct simple_pid_list, add_to_pid_list) (pull_pid_from_list, linux_record_stopped_pid): New.
2003-06-15 * Makefile.in (linux-nat.o): Add rule.Daniel Jacobowitz1-0/+176
* linux-nat.c: New file. * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define. (CHILD_INSERT_VFORK_CATCHPOINT): Define. (CHILD_INSERT_EXEC_CATCHPOINT): Define. * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o. * config/arm/linux.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/x86-64linux.mh (NATDEPFILES): Likewise. * config/ia64/linux.mh (NATDEPFILES): Likewise. * config/m68k/linux.mh (NATDEPFILES): Likewise. * config/mips/linux.mh (NATDEPFILES): Likewise. * config/powerpc/linux.mh (NATDEPFILES): Likewise. * config/s390/s390.mh (NATDEPFILES): Likewise. * config/sparc/linux.mh (NATDEPFILES): Likewise.