diff options
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r-- | gdb/inf-ptrace.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h index 8aded9b..a4ad096 100644 --- a/gdb/inf-ptrace.h +++ b/gdb/inf-ptrace.h @@ -60,6 +60,17 @@ struct inf_ptrace_target : public inf_child_target protected: /* Cleanup the inferior after a successful ptrace detach. */ void detach_success (inferior *inf); + + /* Some targets don't allow us to request notification of inferior events + such as fork and vfork immediately after the inferior is created. + (This is because of how gdb creates inferiors via invoking a shell to + do it. In such a scenario, if the shell init file has commands in it, + the shell will fork and exec for each of those commands, and we will + see each such fork event. Very bad.) + + Such targets will supply an appropriate definition for this + function. */ + virtual void post_startup_inferior (ptid_t ptid) = 0; }; #ifndef __NetBSD__ |