diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d5b6c309084..84ce6c16f4b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-04-17 Tom Tromey + + * quick-symbol.h (enum block_search_flag_values): New. + (block_search_flags): New enum flags type. + 2021-04-16 Tom Tromey * rust-parse.c: New file. diff --git a/gdb/quick-symbol.h b/gdb/quick-symbol.h index d907b1df488..7e22108d7dd 100644 --- a/gdb/quick-symbol.h +++ b/gdb/quick-symbol.h @@ -20,6 +20,16 @@ #ifndef GDB_QUICK_SYMBOL_H #define GDB_QUICK_SYMBOL_H +/* Like block_enum, but used as flags to pass to lookup functions. */ + +enum block_search_flag_values +{ + SEARCH_GLOBAL_BLOCK = 1, + SEARCH_STATIC_BLOCK = 2 +}; + +DEF_ENUM_FLAGS_TYPE (enum block_search_flag_values, block_search_flags); + /* Comparison function for symbol look ups. */ typedef int (symbol_compare_ftype) (const char *string1,