diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2019-12-05 13:44:30 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2019-12-05 13:44:30 -0500 |
commit | b858499daf0a824a518bac8bc13495ad856ab10d (patch) | |
tree | 18d112d989c93d8598786c13d7a19a8b9a624240 /gdb/python | |
parent | a23e9ba17f6ab8bef1f2cc02686e8567bdc728ca (diff) | |
download | gdb-b858499daf0a824a518bac8bc13495ad856ab10d.zip gdb-b858499daf0a824a518bac8bc13495ad856ab10d.tar.gz gdb-b858499daf0a824a518bac8bc13495ad856ab10d.tar.bz2 |
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.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-type.c | 2 | ||||
-rw-r--r-- | gdb/python/py-xmethods.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index e435099..5a6c269 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -758,7 +758,7 @@ typy_lookup_typename (const char *type_name, const struct block *block) else if (startswith (type_name, "enum ")) type = lookup_enum (type_name + 5, NULL); else - type = lookup_typename (python_language, python_gdbarch, + type = lookup_typename (python_language, type_name, block, 0); } catch (const gdb_exception &except) diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index 8606f40..650666e 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -580,7 +580,7 @@ python_xmethod_worker::invoke (struct value *obj, } else { - res = allocate_value (lookup_typename (python_language, python_gdbarch, + res = allocate_value (lookup_typename (python_language, "void", NULL, 0)); } |