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 s12z-opc.h using ../opcodes.


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

commit 0a7b24850e0cba956bd836ecb1f60959cbf75087
Author: Christian Biesinger <cbiesinger@google.com>
Date:   Thu Aug 1 11:49:41 2019 -0500

    Include s12z-opc.h using ../opcodes.
    
    This file exists in binutils-gdb/opcodes, and nothing in Makefile.in adds this
    to the include path.  Default builds work because in-tree readline adds
    binutils-gdb/ to the include path (!). However, this is broken when compiling
    with system readline.
    
    Other files already use this way to include files in opcodes:
    ./gdb/lm32-tdep.c:#include "../opcodes/lm32-desc.h"
    ./gdb/or1k-tdep.h:#include "../opcodes/or1k-desc.h"
    ./gdb/mep-tdep.c:#include "../opcodes/mep-desc.h"
    
    etc.
    
    gdb/ChangeLog:
    
    2019-08-01  Christian Biesinger  <cbiesinger@google.com>
    
    	* s12z-tdep.c: Fix include path for s12z-opc.h.

Diff:
---
 gdb/ChangeLog   | 4 ++++
 gdb/s12z-tdep.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e1275fb..c53df41 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2019-08-01  Christian Biesinger  <cbiesinger@google.com>
+
+	* s12z-tdep.c: Fix include path for s12z-opc.h.
+
 2019-08-01  Alan Hayward  <alan.hayward@arm.com>
 
 	* NEWS: Require GNU make 3.82.
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index a9d20e8..a1c085c 100644
--- a/gdb/s12z-tdep.c
+++ b/gdb/s12z-tdep.c
@@ -30,7 +30,7 @@
 #include "opcode/s12z.h"
 #include "trad-frame.h"
 #include "remote.h"
-#include "opcodes/s12z-opc.h"
+#include "../opcodes/s12z-opc.h"
 
 /* Two of the registers included in S12Z_N_REGISTERS are
    the CCH and CCL "registers" which are just views into


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