diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2008-10-23 17:53:17 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2008-10-23 17:53:17 +0000 |
commit | 3fdfcbf1edbb17225ba62566ad29f2e39e780e38 (patch) | |
tree | 1442cad465eb47edd18d7d3a017b16aa0eb4f9c2 | |
parent | 997339e8ee1fb6f974c85a990c5177ba0fde6596 (diff) | |
download | gdb-3fdfcbf1edbb17225ba62566ad29f2e39e780e38.zip gdb-3fdfcbf1edbb17225ba62566ad29f2e39e780e38.tar.gz gdb-3fdfcbf1edbb17225ba62566ad29f2e39e780e38.tar.bz2 |
* nto-procfs.c (procfs_files_info): Fix a typo.
(procfs_create_inferior): Make attach_flag per-inferior.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/nto-procfs.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c5bee97..23b938f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 6714239..27822d5 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -497,7 +497,7 @@ procfs_files_info (struct target_ops *ignore) 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); } @@ -991,6 +991,7 @@ procfs_create_inferior (char *exec_file, char *allargs, char **env, 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)); @@ -1085,8 +1086,8 @@ procfs_create_inferior (char *exec_file, char *allargs, char **env, 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); |