summaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2012-01-20 09:42:43 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2012-01-20 09:42:43 +0000
commita230ffaf9414998a3ea403773b26d3abcf9c6507 (patch)
tree4fd2f9054aac1e51112c25d7d81f901d0b88dc10 /gdb/inferior.c
parentf3a8d239696d4bb787e96e83695bed9099d89fed (diff)
downloadgdb-a230ffaf9414998a3ea403773b26d3abcf9c6507.tar.gz
2012-01-20 Pedro Alves <palves@redhat.com>
Ulrich Weigand <ulrich.weigand@linaro.org> * inferior.h (struct inferior): Add fake_pid_p. * inferior.c (exit_inferior_1): Clear fake_pid_p. * remote.c (remote_start_remote): Set fake_pid_p if we have to use magic_null_ptid since the remote side doesn't provide a real PID.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 65948c49050..4df8c774627 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -276,6 +276,7 @@ exit_inferior_1 (struct inferior *inftoex, int silent)
observer_notify_inferior_exit (inf);
inf->pid = 0;
+ inf->fake_pid_p = 0;
if (inf->vfork_parent != NULL)
{
inf->vfork_parent->vfork_child = NULL;