]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/lm32-tdep.c
[gdb/build] Work around cgen odr violations
[thirdparty/binutils-gdb.git] / gdb / lm32-tdep.c
index 23998f85dd82f11837acf9cb91d1c0df4243bc3f..0eecdb6ac40a588fe26e3a1c9bc465858f852332 100644 (file)
 #include "regcache.h"
 #include "trad-frame.h"
 #include "reggroups.h"
-#include "opcodes/lm32-desc.h"
 #include <algorithm>
 #include "gdbarch.h"
 
+/* Make cgen names unique to prevent ODR conflicts with other targets.  */
+#define GDB_CGEN_REMAP_PREFIX lm32
+#include "cgen-remap.h"
+#include "opcodes/lm32-desc.h"
+
 /* Macros to extract fields from an instruction.  */
 #define LM32_OPCODE(insn)       ((insn >> 26) & 0x3f)
 #define LM32_REG0(insn)         ((insn >> 21) & 0x1f)