+2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * nto-procfs.c (procfs_files_info): Fix a typo.
+ (procfs_create_inferior): Make attach_flag per-inferior.
+
2008-10-23 Tom Tromey <tromey@redhat.com>
* python/python-value.c (value_to_value_object): Initialize
struct inferior *inf = current_inferior ();
printf_unfiltered ("\tUsing the running image of %s %s via %s.\n",
- pi->attach_flag ? "attached" : "child",
+ inf->attach_flag ? "attached" : "child",
target_pid_to_str (inferior_ptid), nto_procfs_path);
}
int fd, fds[3];
sigset_t set;
const char *inferior_io_terminal = get_inferior_io_terminal ();
+ struct inferior *inf;
argv = xmalloc (((strlen (allargs) + 1) / (unsigned) 2 + 2) *
sizeof (*argv));
inferior_ptid = do_attach (pid_to_ptid (pid));
- add_inferior (pid);
- attach_flag = 0;
+ inf = add_inferior (pid);
+ inf->attach_flag = 0;
flags = _DEBUG_FLAG_KLC; /* Kill-on-Last-Close flag. */
errn = devctl (ctl_fd, DCMD_PROC_SET_FLAG, &flags, sizeof (flags), 0);