Only search for functions in rust_structop::evaluate_funcall

This changes rust_structop::evaluate_funcall to only search for
functions.
This commit is contained in:
Tom Tromey 2023-09-19 17:50:17 -06:00
parent 9edce54e75
commit 6cd92f3b86

View File

@ -1563,7 +1563,7 @@ rust_structop::evaluate_funcall (struct type *expect_type,
const struct block *block = get_selected_block (0);
struct block_symbol sym = lookup_symbol (name.c_str (), block,
SEARCH_VFT,
SEARCH_FUNCTION_DOMAIN,
nullptr);
if (sym.symbol == NULL)
error (_("Could not find function named '%s'"), name.c_str ());