mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
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:
parent
9edce54e75
commit
6cd92f3b86
@ -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 ());
|
||||
|
Loading…
Reference in New Issue
Block a user