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] Remove unused "union agent_val" from ax.h


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

commit d13b8493cbd2891b5886e6176d468eb63c73606a
Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Date:   Thu Oct 5 19:15:11 2017 +0200

    Remove unused "union agent_val" from ax.h
    
    The ax.h header file contains a use of DOUBLEST in the type "union agent_val".
    
    However, that type is never used anywhere, so it can be simply removed.
    
    gdb/ChangeLog:
    2017-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
    
    	* ax.h: Do not include "doublest.h".
    	(union agent_val): Remove.

Diff:
---
 gdb/ChangeLog |  5 +++++
 gdb/ax.h      | 12 ------------
 2 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2fababd..f70aa8a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2017-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
 
+	* ax.h: Do not include "doublest.h".
+	(union agent_val): Remove.
+
+2017-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
 	* dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
 	(decimal_to_string): Return std::string object.
 	(decimal_from_string): Accept std::string object.  Return bool.
diff --git a/gdb/ax.h b/gdb/ax.h
index 621ba17..066c5ee 100644
--- a/gdb/ax.h
+++ b/gdb/ax.h
@@ -19,7 +19,6 @@
 #ifndef AGENTEXPR_H
 #define AGENTEXPR_H
 
-#include "doublest.h"		/* For DOUBLEST.  */
 #include "vec.h"
 
 /* It's sometimes useful to be able to debug programs that you can't
@@ -80,17 +79,6 @@ enum agent_flaws
 
 /* Agent expression data structures.  */
 
-/* The type of an element of the agent expression stack.
-   The bytecode operation indicates which element we should access;
-   the value itself has no typing information.  GDB generates all
-   bytecode streams, so we don't have to worry about type errors.  */
-
-union agent_val
-  {
-    LONGEST l;
-    DOUBLEST d;
-  };
-
 /* A buffer containing a agent expression.  */
 struct agent_expr
   {


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