diff options
author | Tom Tromey <tom@tromey.com> | 2023-09-19 17:50:17 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:17 -0700 |
commit | 6cd92f3b86f510c3e321b922ca77cd42c83b7826 (patch) | |
tree | 9d093c0e8135c1a87468f93ca4456a7ce44f0b5a /gdb | |
parent | 9edce54e75b119e40d18a4564cd65cd747802c9c (diff) | |
download | gdb-6cd92f3b86f510c3e321b922ca77cd42c83b7826.zip gdb-6cd92f3b86f510c3e321b922ca77cd42c83b7826.tar.gz gdb-6cd92f3b86f510c3e321b922ca77cd42c83b7826.tar.bz2 |
Only search for functions in rust_structop::evaluate_funcall
This changes rust_structop::evaluate_funcall to only search for
functions.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/rust-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 11c7f13..e0b5a88 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 ()); |