Consistently use bool for fake_pid_p
authorTom Tromey <tromey@adacore.com>
Thu, 4 Apr 2019 23:03:27 +0000 (17:03 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 9 Apr 2019 17:59:25 +0000 (11:59 -0600)
commit9ab8741a48294e19d514721c710c81bba46db7f2
tree4d5ae9a1a3992e59d5d23ad1c256278f422d4d08
parent9ca1957fcb3c6904d9e5fb0a0e78d4b98f76b1b6
Consistently use bool for fake_pid_p

I noticed a few spots where fake_pid_p is handled as an int, whereas
the field in struct inferior has type bool.  This patch changes the
remaining places to use bool as well.

Tested by the buildbot.

gdb/ChangeLog
2019-04-09  Tom Tromey  <tromey@adacore.com>

* remote.c (remote_target::remote_add_inferior): Change fake_pid_p
to bool.
(extended_remote_target::attach): Update.
(remote_target::remote_notice_new_inferior): Update.
(remote_target::add_current_inferior_and_thread): Update.
* inferior.c (exit_inferior_1): Use "false".
* corelow.c (add_to_thread_list): Make fake_pid_p bool.
gdb/ChangeLog
gdb/corelow.c
gdb/inferior.c
gdb/remote.c