From: Tom Tromey Date: Sat, 17 Apr 2021 15:35:04 +0000 (-0600) Subject: Add block_search_flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e357e9904cad07ba6aaaa2d1aa06de2c52464486;p=binutils-gdb.git Add block_search_flags This adds block_search_flags, a flag enum. This will be used to by certain search functions so that the caller can control which blocks are searched more precisely. gdb/ChangeLog 2021-04-17 Tom Tromey * quick-symbol.h (enum block_search_flag_values): New. (block_search_flags): New enum flags type. --- 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,