diff options
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 29133f9..845d566 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -321,25 +321,27 @@ pull_pid_from_list (struct simple_pid_list **listp, int pid, int *statusp) } /* Initialize ptrace warnings and check for supported ptrace - features given PID. */ + features given PID. + + ATTACHED should be nonzero iff we attached to the inferior. */ static void -linux_init_ptrace (pid_t pid) +linux_init_ptrace (pid_t pid, int attached) { - linux_enable_event_reporting (pid); + linux_enable_event_reporting (pid, attached); linux_ptrace_init_warnings (); } static void linux_child_post_attach (struct target_ops *self, int pid) { - linux_init_ptrace (pid); + linux_init_ptrace (pid, 1); } static void linux_child_post_startup_inferior (struct target_ops *self, ptid_t ptid) { - linux_init_ptrace (ptid_get_pid (ptid)); + linux_init_ptrace (ptid_get_pid (ptid), 0); } /* Return the number of known LWPs in the tgid given by PID. */ |