From: Tom Tromey Date: Tue, 19 Sep 2023 23:50:17 +0000 (-0600) Subject: Only search for functions in rust_structop::evaluate_funcall X-Git-Tag: gdb-15-branchpoint~1099 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cd92f3b86f510c3e321b922ca77cd42c83b7826;p=thirdparty%2Fbinutils-gdb.git Only search for functions in rust_structop::evaluate_funcall This changes rust_structop::evaluate_funcall to only search for functions. --- diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 11c7f13417d..e0b5a887a23 100644 --- a/gdb/rust-lang.c +++ b/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 ());