From 6cd92f3b86f510c3e321b922ca77cd42c83b7826 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 19 Sep 2023 17:50:17 -0600 Subject: [PATCH] Only search for functions in rust_structop::evaluate_funcall This changes rust_structop::evaluate_funcall to only search for functions. --- gdb/rust-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ()); -- 2.47.2