This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] ax-gdb: Remove two unused agent_expr *ax parameters
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 14 Jul 2017 10:49:24 -0000
- Subject: [binutils-gdb] ax-gdb: Remove two unused agent_expr *ax parameters
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=053f805718fb3a77169afebba83cc665e9509e7b
commit 053f805718fb3a77169afebba83cc665e9509e7b
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Fri Jul 14 12:47:39 2017 +0200
ax-gdb: Remove two unused agent_expr *ax parameters
gdb/ChangeLog:
* ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
parameter.
(gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
Diff:
---
gdb/ChangeLog | 6 ++++++
gdb/ax-gdb.c | 16 ++++++++--------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5621789..09d9b12 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
+ * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
+ parameter.
+ (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
+
+2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
+
* ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
from ax, update calls.
(gen_usual_arithmetic): Likewise.
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 3ec87af..8da0514 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -130,8 +130,8 @@ static void gen_binop (struct agent_expr *ax,
static void gen_logical_not (struct agent_expr *ax, struct axs_value *value,
struct type *result_type);
static void gen_complement (struct agent_expr *ax, struct axs_value *value);
-static void gen_deref (struct agent_expr *, struct axs_value *);
-static void gen_address_of (struct agent_expr *, struct axs_value *);
+static void gen_deref (struct axs_value *);
+static void gen_address_of (struct axs_value *);
static void gen_bitfield_ref (struct agent_expr *ax, struct axs_value *value,
struct type *type, int start, int end);
static void gen_primitive_field (struct agent_expr *ax,
@@ -1188,7 +1188,7 @@ gen_complement (struct agent_expr *ax, struct axs_value *value)
/* Dereference the value on the top of the stack. */
static void
-gen_deref (struct agent_expr *ax, struct axs_value *value)
+gen_deref (struct axs_value *value)
{
/* The caller should check the type, because several operators use
this, and we don't know what error message to generate. */
@@ -1211,7 +1211,7 @@ gen_deref (struct agent_expr *ax, struct axs_value *value)
/* Produce the address of the lvalue on the top of the stack. */
static void
-gen_address_of (struct agent_expr *ax, struct axs_value *value)
+gen_address_of (struct axs_value *value)
{
/* Special case for taking the address of a function. The ANSI
standard describes this as a special case, too, so this
@@ -1501,7 +1501,7 @@ gen_struct_ref (struct agent_expr *ax, struct axs_value *value,
while (pointer_type (value->type))
{
require_rvalue (ax, value);
- gen_deref (ax, value);
+ gen_deref (value);
}
type = check_typedef (value->type);
@@ -2132,13 +2132,13 @@ gen_expr (struct expression *exp, union exp_element **pc,
gen_usual_unary (ax, value);
if (!pointer_type (value->type))
error (_("Argument of unary `*' is not a pointer."));
- gen_deref (ax, value);
+ gen_deref (value);
break;
case UNOP_ADDR:
(*pc)++;
gen_expr (exp, pc, ax, value);
- gen_address_of (ax, value);
+ gen_address_of (value);
break;
case UNOP_SIZEOF:
@@ -2316,7 +2316,7 @@ gen_expr_binop_rest (struct expression *exp,
"not a number or boolean."));
gen_ptradd (ax, value, value1, value2);
- gen_deref (ax, value);
+ gen_deref (value);
break;
}
case BINOP_BITWISE_AND: