aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-07-19 13:07:32 -0600
committerTom Tromey <tromey@adacore.com>2022-07-22 11:06:51 -0600
commit4a570176b4031de847c2b6067798d67006c1e8f5 (patch)
tree3f1009c5c1767ccced9adb134a16308e15c4c044 /gdb/target.h
parent36da255e7c6a37b17492361d91001e23263c05c6 (diff)
downloadgdb-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.h')
-rw-r--r--gdb/target.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 18559fe..7e52716 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -713,7 +713,7 @@ struct target_ops
TARGET_DEFAULT_RETURN (false);
virtual bool is_async_p ()
TARGET_DEFAULT_RETURN (false);
- virtual void async (int)
+ virtual void async (bool)
TARGET_DEFAULT_NORETURN (tcomplain ());
virtual int async_wait_fd ()
TARGET_DEFAULT_NORETURN (noprocess ());
@@ -1886,7 +1886,7 @@ extern bool target_can_async_p (struct target_ops *target);
extern bool target_is_async_p ();
/* Enables/disabled async target events. */
-extern void target_async (int enable);
+extern void target_async (bool enable);
/* Enables/disables thread create and exit events. */
extern void target_thread_events (int enable);