mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
ax-gdb: Remove more unused arguments
gdb/ChangeLog: * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and operator_name parameters. (gen_expr): Update function call.
This commit is contained in:
parent
40f4af2873
commit
2347965cd9
@ -1,3 +1,9 @@
|
||||
2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
|
||||
operator_name parameters.
|
||||
(gen_expr): Update function call.
|
||||
|
||||
2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
|
||||
|
@ -1651,9 +1651,7 @@ gen_maybe_namespace_elt (struct agent_expr *ax, struct axs_value *value,
|
||||
|
||||
static int
|
||||
gen_aggregate_elt_ref (struct agent_expr *ax, struct axs_value *value,
|
||||
struct type *type, char *field,
|
||||
const char *operator_name,
|
||||
const char *operand_name)
|
||||
struct type *type, char *field)
|
||||
{
|
||||
switch (TYPE_CODE (type))
|
||||
{
|
||||
@ -2198,7 +2196,7 @@ gen_expr (struct expression *exp, union exp_element **pc,
|
||||
char *name = &(*pc)[3].string;
|
||||
int found;
|
||||
|
||||
found = gen_aggregate_elt_ref (ax, value, type, name, "?", "??");
|
||||
found = gen_aggregate_elt_ref (ax, value, type, name);
|
||||
if (!found)
|
||||
error (_("There is no field named %s"), name);
|
||||
(*pc) += 5 + BYTES_TO_EXP_ELEM (length + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user