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/target.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/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c index 18e53aa..4114490 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2675,7 +2675,7 @@ target_resume (ptid_t scope_ptid, int step, enum gdb_signal signal) clear_inline_frame_state (curr_target, scope_ptid); if (target_can_async_p ()) - target_async (1); + target_async (true); } /* See target.h. */ @@ -4352,7 +4352,7 @@ maintenance_print_target_stack (const char *cmd, int from_tty) /* See target.h. */ void -target_async (int enable) +target_async (bool enable) { /* If we are trying to enable async mode then it must be the case that async mode is possible for this target. */ |