diff options
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 0adb045..256b0f9 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -640,7 +640,8 @@ procfs_attach (struct target_ops *ops, char *args, int from_tty) gdb_flush (gdb_stdout); } inferior_ptid = do_attach (pid_to_ptid (pid)); - inf = add_inferior (pid); + inf = current_inferior (); + inferior_appeared (inf, pid); inf->attach_flag = 1; push_target (ops); @@ -1196,7 +1197,8 @@ procfs_create_inferior (struct target_ops *ops, char *exec_file, inferior_ptid = do_attach (pid_to_ptid (pid)); procfs_find_new_threads (ops); - inf = add_inferior (pid); + inf = current_inferior (); + inferior_appeared (inf, pid); inf->attach_flag = 0; flags = _DEBUG_FLAG_KLC; /* Kill-on-Last-Close flag. */ |