mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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.
This commit is contained in:
@@ -285,7 +285,7 @@ add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg)
|
||||
int core_tid;
|
||||
int pid, lwpid;
|
||||
asection *reg_sect = (asection *) reg_sect_arg;
|
||||
int fake_pid_p = 0;
|
||||
bool fake_pid_p = false;
|
||||
struct inferior *inf;
|
||||
|
||||
if (!startswith (bfd_section_name (abfd, asect), ".reg/"))
|
||||
@@ -296,7 +296,7 @@ add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg)
|
||||
pid = bfd_core_file_pid (core_bfd);
|
||||
if (pid == 0)
|
||||
{
|
||||
fake_pid_p = 1;
|
||||
fake_pid_p = true;
|
||||
pid = CORELOW_PID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user