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/rust-parse.c | |
parent | 6c0152149476085e6c4c5c812bfc3a06fff7c938 (diff) | |
download | binutils-ccf41c248737eb6650211481366c4e1156ce01ae.zip binutils-ccf41c248737eb6650211481366c4e1156ce01ae.tar.gz binutils-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/rust-parse.c')
-rw-r--r-- | gdb/rust-parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c index 277a079..af1b76f 100644 --- a/gdb/rust-parse.c +++ b/gdb/rust-parse.c @@ -308,7 +308,7 @@ struct rust_parser void update_innermost_block (struct block_symbol sym); struct block_symbol lookup_symbol (const char *name, const struct block *block, - const domain_enum domain); + const domain_search_flags domain); struct type *rust_lookup_type (const char *name); /* Clear some state. This is only used for testing. */ @@ -431,7 +431,7 @@ munge_name_and_block (const char **name, const struct block **block) struct block_symbol rust_parser::lookup_symbol (const char *name, const struct block *block, - const domain_enum domain) + const domain_search_flags domain) { struct block_symbol result; @@ -454,7 +454,7 @@ rust_parser::rust_lookup_type (const char *name) const struct block *block = pstate->expression_context_block; munge_name_and_block (&name, &block); - result = ::lookup_symbol (name, block, STRUCT_DOMAIN, NULL); + result = ::lookup_symbol (name, block, SEARCH_STRUCT_DOMAIN, NULL); if (result.symbol != NULL) { update_innermost_block (result); @@ -1221,7 +1221,7 @@ rust_parser::name_to_operation (const std::string &name) { struct block_symbol sym = lookup_symbol (name.c_str (), pstate->expression_context_block, - VAR_DOMAIN); + SEARCH_VFT); if (sym.symbol != nullptr && sym.symbol->aclass () != LOC_TYPEDEF) return make_operation<var_value_operation> (sym); |