Include s12z-opc.h using ../opcodes.
authorChristian Biesinger <cbiesinger@google.com>
Thu, 1 Aug 2019 16:49:41 +0000 (11:49 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 1 Aug 2019 17:40:49 +0000 (12:40 -0500)
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.

gdb/ChangeLog
gdb/s12z-tdep.c

index e1275fbb5ee404c21ef35436c5a5c1f2af0ee195..c53df411fd8994b496a7db80c626eb9ac8c237a9 100644 (file)
@@ -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.
index a9d20e809c17d72bfd15d0905b83cc89bdce8a65..a1c085cfbb03df46474a4c5bca8bd58502371a16 100644 (file)
@@ -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