diff options
author | Pedro Alves <pedro@codesourcery.com> | 2008-09-22 15:16:51 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2008-09-22 15:16:51 +0000 |
commit | 9034ac5e53533df531088c9ef0a9f33ba08d214c (patch) | |
tree | 2d3347f5ccb875d84a816a38f5aa637a27a9c21d /gdb/remote-sim.c | |
parent | 699fd3029bf1748f8d4c3e92e0cf2262f5a628c2 (diff) | |
download | gdb-9034ac5e53533df531088c9ef0a9f33ba08d214c.tar.gz |
* gnu-nat.c (gnu_attach): Add process to inferiors table.
(gnu_detach): Remove it.
* go32-nat.c (go32_create_inferior): Add process to gdb's inferior
table.
* inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
to inferior table accordingly.
(inf_ptrace_attach): Add new process to inferior table.
(inf_ptrace_detach): Remove it.
* inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
to inferior table accordingly.
(inf_ttrace_attach): Add process to inferior table.
(inf_ttrace_detach): Remove it.
* linux-fork.c (init_fork_list): Delete any left over inferior.
(linux_fork_mourn_inferior, detach_fork_command): Also delete
processes from inferior list.
* monitor.c (monitor_open): Add process to inferior list.
(monitor_close): Remove it.
* nto-procfs.c (procfs_attach): Add process to inferior list.
Find threads after pushing the target.
(procfs_detach): Remove process from inferior list.
(procfs_create_inferior): Add process to inferior list.
* procfs.c (procfs_detach): Remove process from inferior list.
(do_attach): Add process to inferior list.
* remote-sim.c (sim_create_inferior): Add process to inferior list.
(gdbsim_close): Remove it.
* target.c (generic_mourn_inferior): If inferior_ptid is not
null_ptid, remove the corresponding inferior from inferior list.
* win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
(win32_detach): Remove it.
* linux-nat.c (linux_child_follow_fork): Delete and add inferiors
to inferior list accordingly.
* fork-child.c (fork_inferior): Add process to inferior list.
* corelow.c (CORELOW_PID): Define.
(core_close): Remove core from inferior list.
(core_open): Add it.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 9d014e16dff..673504621fc 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -480,6 +480,7 @@ gdbsim_create_inferior (char *exec_file, char *args, char **env, int from_tty) sim_create_inferior (gdbsim_desc, exec_bfd, argv, env); inferior_ptid = remote_sim_ptid; + add_inferior_silent (ptid_get_pid (inferior_ptid); add_thread_silent (inferior_ptid); target_mark_running (&gdbsim_ops); @@ -591,6 +592,7 @@ gdbsim_close (int quitting) end_callbacks (); generic_mourn_inferior (); delete_thread_silent (remote_sim_ptid); + delete_inferior_silent (ptid_get_pid (remote_sim_ptid)); } /* Takes a program previously attached to and detaches it. |