public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Add block_search_flags
@ 2021-04-17 15:39 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2021-04-17 15:39 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e357e9904cad07ba6aaaa2d1aa06de2c52464486
commit e357e9904cad07ba6aaaa2d1aa06de2c52464486
Author: Tom Tromey <tom@tromey.com>
Date: Sat Apr 17 09:35:04 2021 -0600
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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/quick-symbol.h | 10 ++++++++++
2 files changed, 15 insertions(+)
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 <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 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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-17 15:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17 15:39 [binutils-gdb] Add block_search_flags Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).