This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] ax-gdb: Remove more unused arguments


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2347965cd99810f5ff6f638880e4eb498a8ffa82

commit 2347965cd99810f5ff6f638880e4eb498a8ffa82
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Fri Jul 14 12:47:40 2017 +0200

    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.

Diff:
---
 gdb/ChangeLog | 6 ++++++
 gdb/ax-gdb.c  | 6 ++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 68e7a1b..550a7a8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 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
 	parameter.
 	* symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]