From 9ab8741a48294e19d514721c710c81bba46db7f2 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 4 Apr 2019 17:03:27 -0600 Subject: 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 * 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/inferior.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/inferior.c') diff --git a/gdb/inferior.c b/gdb/inferior.c index e995af8..e7b4937 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -191,7 +191,7 @@ exit_inferior_1 (struct inferior *inftoex, int silent) gdb::observers::inferior_exit.notify (inf); inf->pid = 0; - inf->fake_pid_p = 0; + inf->fake_pid_p = false; inf->priv = NULL; if (inf->vfork_parent != NULL) -- cgit v1.1