diff options
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r-- | gdb/btrace.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h index f844df8..6c54c6f 100644 --- a/gdb/btrace.h +++ b/gdb/btrace.h @@ -28,6 +28,7 @@ #include "btrace-common.h" #include "target/waitstatus.h" /* For enum target_stop_reason. */ +#include "common/enum-flags.h" #if defined (HAVE_LIBIPT) # include <intel-pt.h> @@ -58,6 +59,7 @@ enum btrace_insn_flag /* The instruction has been executed speculatively. */ BTRACE_INSN_FLAG_SPECULATIVE = (1 << 0) }; +DEF_ENUM_FLAGS_TYPE (enum btrace_insn_flag, btrace_insn_flags); /* A branch trace instruction. @@ -74,7 +76,7 @@ struct btrace_insn enum btrace_insn_class iclass; /* A bit vector of BTRACE_INSN_FLAGS. */ - enum btrace_insn_flag flags; + btrace_insn_flags flags; }; /* A vector of branch trace instructions. */ @@ -100,6 +102,7 @@ enum btrace_function_flag if bfun_up_links_to_ret is clear. */ BFUN_UP_LINKS_TO_TAILCALL = (1 << 1) }; +DEF_ENUM_FLAGS_TYPE (enum btrace_function_flag, btrace_function_flags); /* Decode errors for the BTS recording format. */ enum btrace_bts_error @@ -181,7 +184,7 @@ struct btrace_function int level; /* A bit-vector of btrace_function_flag. */ - enum btrace_function_flag flags; + btrace_function_flags flags; }; /* A branch trace instruction iterator. */ @@ -245,6 +248,7 @@ enum btrace_thread_flag /* The thread is to be stopped. */ BTHR_STOP = (1 << 4) }; +DEF_ENUM_FLAGS_TYPE (enum btrace_thread_flag, btrace_thread_flags); #if defined (HAVE_LIBIPT) /* A packet. */ @@ -342,7 +346,7 @@ struct btrace_thread_info unsigned int ngaps; /* A bit-vector of btrace_thread_flag. */ - enum btrace_thread_flag flags; + btrace_thread_flags flags; /* The instruction history iterator. */ struct btrace_insn_history *insn_history; |