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] Include doublest.h and expression.h in dfp.h


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

commit 8018d34f1e5d94ffe1f12ac2455429c6f713c518
Author: Yao Qi <yao.qi@linaro.org>
Date:   Fri Jan 6 14:26:45 2017 +0000

    Include doublest.h and expression.h in dfp.h
    
    $ make check-headers CHECK_HEADERS="dfp.h"
    ...
    ../../binutils-gdb/gdb/dfp.h:39:8: error: 'DOUBLEST' does not name a type
     extern DOUBLEST decimal_to_doublest (const gdb_byte *from, int len,
            ^
    ../../binutils-gdb/gdb/dfp.h:41:33: error: use of enum 'exp_opcode' without previous declaration
     extern void decimal_binop (enum exp_opcode,
                                     ^
    gdb:
    
    2017-01-06  Yao Qi  <yao.qi@linaro.org>
    
    	* dfp.h: Include "dboulest.h" and "expression.h".

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/dfp.h     | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 986984d..c09965f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
 
+	* dfp.h: Include "dboulest.h" and "expression.h".
+
+2017-01-06  Yao Qi  <yao.qi@linaro.org>
+
 	* ax-gdb.h: Include "ax.h".
 
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
diff --git a/gdb/dfp.h b/gdb/dfp.h
index 9f37b8c..c8ff5a1 100644
--- a/gdb/dfp.h
+++ b/gdb/dfp.h
@@ -25,6 +25,9 @@
 #ifndef DFP_H
 #define DFP_H
 
+#include "doublest.h"    /* For DOUBLEST.  */
+#include "expression.h"  /* For enum exp_opcode.  */
+
 /* When using decimal128, this is the maximum string length + 1
  * (value comes from libdecnumber's DECIMAL128_String constant).  */
 #define MAX_DECIMAL_STRING  43


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