This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 4/4] ax-gdb: Remove more unused arguments
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Wed, 5 Jul 2017 11:19:13 +0200
- Subject: [PATCH 4/4] ax-gdb: Remove more unused arguments
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=ericsson.com;
- References: <1499246353-18486-1-git-send-email-simon.marchi@ericsson.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
gdb/ChangeLog:
* ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
operator_name parameters.
(gen_expr): Update function call.
---
gdb/ax-gdb.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 6115772..91bc4b8 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -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);
--
2.7.4