diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-30 23:00:26 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:16 -0700 |
commit | ccf41c248737eb6650211481366c4e1156ce01ae (patch) | |
tree | 55933f48a150085e0df7728b4f82047977559a88 /gdb/block.h | |
parent | 6c0152149476085e6c4c5c812bfc3a06fff7c938 (diff) | |
download | gdb-ccf41c248737eb6650211481366c4e1156ce01ae.zip gdb-ccf41c248737eb6650211481366c4e1156ce01ae.tar.gz gdb-ccf41c248737eb6650211481366c4e1156ce01ae.tar.bz2 |
Use domain_search_flags in lookup_symbol et al
This changes lookup_symbol and associated APIs to accept
domain_search_flags rather than a domain_enum.
Note that this introduces some new constants to Python and Guile. I
chose to break out the documentation patch for this, because the
internals here do not change until a later patch, and it seemed
simpler to patch the docs just once, rather than twice.
Diffstat (limited to 'gdb/block.h')
-rw-r--r-- | gdb/block.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/block.h b/gdb/block.h index 5c56518..0c12194 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -554,28 +554,29 @@ typedef iterator_range<block_iterator_wrapper> block_iterator_range; /* Return true if symbol A is the best match possible for DOMAIN. */ -extern bool best_symbol (struct symbol *a, const domain_enum domain); +extern bool best_symbol (struct symbol *a, const domain_search_flags domain); /* Return symbol B if it is a better match than symbol A for DOMAIN. Otherwise return A. */ extern struct symbol *better_symbol (struct symbol *a, struct symbol *b, - const domain_enum domain); + const domain_search_flags domain); /* Search BLOCK for symbol NAME in DOMAIN. */ extern struct symbol *block_lookup_symbol (const struct block *block, const char *name, symbol_name_match_type match_type, - const domain_enum domain); + const domain_search_flags domain); /* Search BLOCK for symbol NAME in DOMAIN but only in primary symbol table of BLOCK. BLOCK must be STATIC_BLOCK or GLOBAL_BLOCK. Function is useful if one iterates all global/static blocks of an objfile. */ -extern struct symbol *block_lookup_symbol_primary (const struct block *block, - const char *name, - const domain_enum domain); +extern struct symbol *block_lookup_symbol_primary + (const struct block *block, + const char *name, + const domain_search_flags domain); /* Find symbol NAME in BLOCK and in DOMAIN. This will return a matching symbol whose type is not a "opaque", see TYPE_IS_OPAQUE. @@ -584,7 +585,7 @@ extern struct symbol *block_lookup_symbol_primary (const struct block *block, extern struct symbol *block_find_symbol (const struct block *block, const lookup_name_info &name, - const domain_enum domain, + const domain_search_flags domain, struct symbol **stub); /* Given a vector of pairs, allocate and build an obstack allocated |