Browse Source

Only search for functions in rust_structop::evaluate_funcall

This changes rust_structop::evaluate_funcall to only search for
functions.
users/ARM/gcs-binutils-gdb-master
Tom Tromey 3 years ago
parent
commit
6cd92f3b86
  1. 2
      gdb/rust-lang.c

2
gdb/rust-lang.c

@ -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…
Cancel
Save