From b858499daf0a824a518bac8bc13495ad856ab10d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 5 Dec 2019 13:44:30 -0500 Subject: Remove gdbarch parameter of lookup_typename I noticed that the gdbarch parameter of lookup_typename was unused, so I removed it (as well as from lookup_signed_typename and lookup_unsigned_typename) and updated all callers. Tested by rebuilding. gdb/ChangeLog: * c-exp.y: Update calls to lookup_typename, lookup_signed_typename and lookup_unsigned_typename. * c-lang.c (evaluate_subexp_c): Likewise. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Likewise. * eval.c (binop_promote): Likewise. * gdbtypes.c (lookup_typename): Remove gdbarch parameter. (lookup_unsigned_typename): Likewise. (lookup_signed_typename): Likewise. * gdbtypes.h (lookup_unsigned_typename): Likewise. (lookup_signed_typename): Likewise. (lookup_typename): Likewise. * guile/scm-type.c (tyscm_lookup_typename): Update calls to lookup_typename, lookup_signed_typename, lookup_unsigned_typename. * m2-exp.y: Likewise. * printcmd.c (printf_wide_c_string): Likewise. (ui_printf): Likewise. * python/py-type.c (typy_lookup_typename): Likewise. * python/py-xmethods.c (python_xmethod_worker::invoke): Likewise. * rust-exp.y: Likewise. --- gdb/rust-exp.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/rust-exp.y') diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y index a15e0de..5587ebf 100644 --- a/gdb/rust-exp.y +++ b/gdb/rust-exp.y @@ -2024,7 +2024,7 @@ rust_parser::rust_lookup_type (const char *name, const struct block *block) return SYMBOL_TYPE (result.symbol); } - type = lookup_typename (language (), arch (), name, NULL, 1); + type = lookup_typename (language (), name, NULL, 1); if (type != NULL) return type; -- cgit v1.1