]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Only search for functions in rust_structop::evaluate_funcall
authorTom Tromey <tom@tromey.com>
Tue, 19 Sep 2023 23:50:17 +0000 (17:50 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jan 2024 17:58:17 +0000 (10:58 -0700)
This changes rust_structop::evaluate_funcall to only search for
functions.

gdb/rust-lang.c

index 11c7f13417ddb82309b868fb4f892f77680b4493..e0b5a887a231916d35bc49032e86bec4505980f8 100644 (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 ());