diff options
Diffstat (limited to 'gdb/target')
-rw-r--r-- | gdb/target/target.h | 4 | ||||
-rw-r--r-- | gdb/target/wait.h | 15 |
2 files changed, 14 insertions, 5 deletions
diff --git a/gdb/target/target.h b/gdb/target/target.h index a66459c..393272b 100644 --- a/gdb/target/target.h +++ b/gdb/target/target.h @@ -21,6 +21,8 @@ #define TARGET_TARGET_H #include "target/waitstatus.h" +#include "target/wait.h" + /* This header is a stopgap until more code is shared. */ /* Read LEN bytes of target memory at address MEMADDR, placing the @@ -84,7 +86,7 @@ extern void target_continue (ptid_t ptid, enum gdb_signal signal); options. */ extern ptid_t target_wait (ptid_t ptid, struct target_waitstatus *status, - int options); + target_wait_flags options); /* The inferior process has died. Do what is right. */ diff --git a/gdb/target/wait.h b/gdb/target/wait.h index d23b892..ee623bb 100644 --- a/gdb/target/wait.h +++ b/gdb/target/wait.h @@ -20,11 +20,18 @@ #ifndef TARGET_WAIT_H #define TARGET_WAIT_H +#include "gdbsupport/enum-flags.h" + /* Options that can be passed to target_wait. */ -/* Return immediately if there's no event already queued. If this - options is not requested, target_wait blocks waiting for an - event. */ -#define TARGET_WNOHANG 1 +enum target_wait_flag : unsigned +{ + /* Return immediately if there's no event already queued. If this + options is not requested, target_wait blocks waiting for an + event. */ + TARGET_WNOHANG = 1, +}; + +DEF_ENUM_FLAGS_TYPE (enum target_wait_flag, target_wait_flags); #endif /* TARGET_WAIT_H */ |