Use bool in thread_events

This changes target_ops::thread_events and target_thread_events to use
'bool'.  The callers were already doing this.

Tested by rebuilding.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2024-05-27 14:12:33 -06:00
parent 6d267250a9
commit 2db17c87bd
7 changed files with 16 additions and 16 deletions

View File

@@ -279,7 +279,7 @@ struct simple_pid_list
static struct simple_pid_list *stopped_pids;
/* Whether target_thread_events is in effect. */
static int report_thread_events;
static bool report_thread_events;
static int kill_lwp (int lwpid, int signo);
@@ -4618,7 +4618,7 @@ linux_nat_target::fileio_unlink (struct inferior *inf, const char *filename,
/* Implementation of the to_thread_events method. */
void
linux_nat_target::thread_events (int enable)
linux_nat_target::thread_events (bool enable)
{
report_thread_events = enable;
}