This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Consistently use bool for fake_pid_p
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at adacore dot com>, gdb-patches at sourceware dot org
- Date: Tue, 9 Apr 2019 18:48:51 +0100
- Subject: Re: [PATCH] Consistently use bool for fake_pid_p
- References: <20190409164524.28855-1-tromey@adacore.com>
On 4/9/19 5:45 PM, Tom Tromey wrote:
> 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 could go in as an obvious patch, IMO.
Thanks,
Pedro Alves