diff options
author | Tom Tromey <tromey@adacore.com> | 2022-07-19 13:07:32 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-07-22 11:06:51 -0600 |
commit | 4a570176b4031de847c2b6067798d67006c1e8f5 (patch) | |
tree | 3f1009c5c1767ccced9adb134a16308e15c4c044 /gdb/linux-nat.c | |
parent | 36da255e7c6a37b17492361d91001e23263c05c6 (diff) | |
download | gdb-4a570176b4031de847c2b6067798d67006c1e8f5.zip gdb-4a570176b4031de847c2b6067798d67006c1e8f5.tar.gz gdb-4a570176b4031de847c2b6067798d67006c1e8f5.tar.bz2 |
Change target_ops::async to accept bool
This changes the parameter of target_ops::async from int to bool.
Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 0a93ab5..a2bbd3c 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1652,7 +1652,7 @@ linux_nat_target::resume (ptid_t scope_ptid, int step, enum gdb_signal signo) if (target_can_async_p ()) { - target_async (1); + target_async (true); /* Tell the event loop we have something to process. */ async_file_mark (); } @@ -4143,9 +4143,9 @@ handle_target_event (int error, gdb_client_data client_data) /* target_async implementation. */ void -linux_nat_target::async (int enable) +linux_nat_target::async (bool enable) { - if ((enable != 0) == is_async_p ()) + if (enable == is_async_p ()) return; /* Block child signals while we create/destroy the pipe, as their |