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.
This commit is contained in:
Tom Tromey
2022-07-19 13:07:32 -06:00
parent 36da255e7c
commit 4a570176b4
15 changed files with 35 additions and 35 deletions

View File

@@ -537,7 +537,7 @@ public:
bool is_async_p () override;
void async (int) override;
void async (bool) override;
int async_wait_fd () override;
@@ -4649,8 +4649,8 @@ remote_target::process_initial_stop_replies (int from_tty)
the poll in stop_all_threads to consider events from it, so enable
it temporarily. */
gdb_assert (!this->is_async_p ());
SCOPE_EXIT { target_async (0); };
target_async (1);
SCOPE_EXIT { target_async (false); };
target_async (true);
stop_all_threads ("remote connect in all-stop");
}
@@ -5018,7 +5018,7 @@ remote_target::start_remote_1 (int from_tty, int extended_p)
process_initial_stop_replies (from_tty);
if (target_can_async_p ())
target_async (1);
target_async (true);
}
/* Give the target a chance to look up symbols. */
@@ -10451,7 +10451,7 @@ extended_remote_target::create_inferior (const char *exec_file,
/* If running asynchronously, register the target file descriptor
with the event loop. */
if (target_can_async_p ())
target_async (1);
target_async (true);
/* Disable address space randomization if requested (and supported). */
if (supports_disable_randomization ())
@@ -14495,7 +14495,7 @@ remote_target::async_wait_fd ()
}
void
remote_target::async (int enable)
remote_target::async (bool enable)
{
struct remote_state *rs = get_remote_state ();