public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Only search for functions in rust_structop::evaluate_funcall
@ 2024-01-28 23:45 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-01-28 23:45 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6cd92f3b86f510c3e321b922ca77cd42c83b7826
commit 6cd92f3b86f510c3e321b922ca77cd42c83b7826
Author: Tom Tromey <tom@tromey.com>
Date: Tue Sep 19 17:50:17 2023 -0600
Only search for functions in rust_structop::evaluate_funcall
This changes rust_structop::evaluate_funcall to only search for
functions.
Diff:
---
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 ());
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-28 23:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28 23:45 [binutils-gdb] Only search for functions in rust_structop::evaluate_funcall Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).