aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-04-17 09:35:04 -0600
committerTom Tromey <tom@tromey.com>2021-04-17 09:35:04 -0600
commite357e9904cad07ba6aaaa2d1aa06de2c52464486 (patch)
tree166bb486b1d7a43d24b11cceb01af3498a68159f /gdb
parent1b348b6b67dcdc120f5ac9dc409142b8ec2b4a09 (diff)
downloadgdb-e357e9904cad07ba6aaaa2d1aa06de2c52464486.zip
gdb-e357e9904cad07ba6aaaa2d1aa06de2c52464486.tar.gz
gdb-e357e9904cad07ba6aaaa2d1aa06de2c52464486.tar.bz2
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 <tom@tromey.com> * quick-symbol.h (enum block_search_flag_values): New. (block_search_flags): New enum flags type.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/quick-symbol.h10
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d5b6c30..84ce6c1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-17 Tom Tromey <tom@tromey.com>
+
+ * quick-symbol.h (enum block_search_flag_values): New.
+ (block_search_flags): New enum flags type.
+
2021-04-16 Tom Tromey <tom@tromey.com>
* rust-parse.c: New file.
diff --git a/gdb/quick-symbol.h b/gdb/quick-symbol.h
index d907b1d..7e22108 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,