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 ax.h in ax-gdb.h


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

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

    Include ax.h in ax-gdb.h
    
    $ make check-headers CHECK_HEADERS="ax-gdb.h"
    ...
    
    ../../binutils-gdb/gdb/ax-gdb.h:104:8: error: 'agent_expr_up' does not name a type
     extern agent_expr_up gen_trace_for_expr (CORE_ADDR, struct expression *,
            ^
    
    gdb:
    
    2017-01-06  Yao Qi  <yao.qi@linaro.org>
    
    	* ax-gdb.h: Include "ax.h"

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

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f51dc4e..986984d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
 
+	* ax-gdb.h: Include "ax.h".
+
+2017-01-06  Yao Qi  <yao.qi@linaro.org>
+
 	* Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
 	with nat/gdb_ptrace.h.
 
diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h
index 5c74a0e..8b5ab46 100644
--- a/gdb/ax-gdb.h
+++ b/gdb/ax-gdb.h
@@ -19,6 +19,8 @@
 #ifndef AX_GDB_H
 #define AX_GDB_H
 
+#include "ax.h"  /* For agent_expr_up.  */
+
 struct expression;
 union exp_element;


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