diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 56c1639..d1fb010 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -534,7 +534,7 @@ static void procfs_attach PARAMS ((char *, int)); static void proc_set_exec_trap PARAMS ((void)); -static int procfs_init_inferior PARAMS ((int)); +static int procfs_init_inferior PARAMS ((int)); static struct procinfo *create_procinfo PARAMS ((int)); @@ -2537,7 +2537,7 @@ NOTES */ -static int +static int procfs_init_inferior (pid) int pid; { @@ -2563,8 +2563,7 @@ procfs_init_inferior (pid) /* One trap to exec the shell, one to exec the program being debugged. */ startup_inferior (2); #endif - - return pid; + return (pid); } /* @@ -5760,10 +5759,14 @@ struct target_ops procfs_ops = { "Unix /proc child process (started by the \"run\" command).", /* to_doc */ procfs_open, /* to_open */ 0, /* to_close */ - procfs_attach, /* to_attach */ + procfs_attach, /* to_attach */ + NULL, /* to_post_attach */ + procfs_attach, /* to_require_attach */ procfs_detach, /* to_detach */ - procfs_resume, /* to_resume */ + procfs_detach, /* to_require_detach */ + procfs_resume, /* to_resume */ procfs_wait, /* to_wait */ + NULL, /* to_post_wait */ procfs_fetch_registers, /* to_fetch_registers */ procfs_store_registers, /* to_store_registers */ procfs_prepare_to_store, /* to_prepare_to_store */ @@ -5780,11 +5783,33 @@ struct target_ops procfs_ops = { 0, /* to_load */ 0, /* to_lookup_symbol */ procfs_create_inferior, /* to_create_inferior */ + NULL, /* to_post_startup_inferior */ + NULL, /* to_acknowledge_created_inferior */ + NULL, /* to_clone_and_follow_inferior */ + NULL, /* to_post_follow_inferior_by_clone */ + NULL, /* to_insert_fork_catchpoint */ + NULL, /* to_remove_fork_catchpoint */ + NULL, /* to_insert_vfork_catchpoint */ + NULL, /* to_remove_vfork_catchpoint */ + NULL, /* to_has_forked */ + NULL, /* to_has_vforked */ + NULL, /* to_can_follow_vfork_prior_to_exec */ + NULL, /* to_post_follow_vfork */ + NULL, /* to_insert_exec_catchpoint */ + NULL, /* to_remove_exec_catchpoint */ + NULL, /* to_has_execd */ + NULL, /* to_reported_exec_events_per_exec_call */ + NULL, /* to_has_syscall_event */ + NULL, /* to_has_exited */ procfs_mourn_inferior, /* to_mourn_inferior */ procfs_can_run, /* to_can_run */ procfs_notice_signals, /* to_notice_signals */ procfs_thread_alive, /* to_thread_alive */ procfs_stop, /* to_stop */ + NULL, /* to_enable_exception_callback */ + NULL, /* to_get_current_exception_event */ + NULL, /* to_pid_to_exec_file */ + NULL, /* to_core_file_to_sym_file */ process_stratum, /* to_stratum */ 0, /* to_next */ 1, /* to_has_all_memory */ |