From 387ef2492403c89ac7ac817488a49a3fd7d9d4ba Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Wed, 13 Apr 2022 11:39:36 +0100 Subject: [PATCH] Fix 32-bit build for --enable-targets=all The following fixes the GDB build for 32-bit (tested on 32-bit arm) for the following combinations: * --enable-targets=all --disable-sim * --enable-targets=all I do see quite a few internal errors when running gdb.base/all-architectures.exp on arm 32-bit Ubuntu 18.04. They all fail when checking for a default disassembling function, which doesn't exists for some targets. This particular combination of switches has not been tested for 32-bit hosts in a while (since November/December 2021), so there might be bugs that we need to address. The patch makes things build cleanly though. Tested on aarch64-linux Ubuntu 20.04 and armhf-linux-gnueabi Ubuntu 18.04. It would be nice to exercise this on other 32-bit targets. --- opcodes/Makefile.am | 10 ++++++++++ opcodes/Makefile.in | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am index afd19fa7785..681fbc07584 100644 --- a/opcodes/Makefile.am +++ b/opcodes/Makefile.am @@ -124,6 +124,11 @@ TARGET32_LIBOPCODES_CFILES = \ arm-dis.c \ avr-dis.c \ bfin-dis.c \ + bpf-asm.c \ + bpf-desc.c \ + bpf-dis.c \ + bpf-ibld.c \ + bpf-opc.c \ cgen-asm.c \ cgen-bitset.c \ cgen-dis.c \ @@ -178,6 +183,9 @@ TARGET32_LIBOPCODES_CFILES = \ lm32-ibld.c \ lm32-opc.c \ lm32-opinst.c \ + loongarch-opc.c \ + loongarch-dis.c \ + loongarch-coder.c \ m10200-dis.c \ m10200-opc.c \ m10300-dis.c \ @@ -234,6 +242,8 @@ TARGET32_LIBOPCODES_CFILES = \ ppc-opc.c \ pru-dis.c \ pru-opc.c \ + riscv-dis.c \ + riscv-opc.c \ rl78-decode.c \ rl78-dis.c \ rx-decode.c \ diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in index 3ab8bfb0548..d3eee49b169 100644 --- a/opcodes/Makefile.in +++ b/opcodes/Makefile.in @@ -516,6 +516,11 @@ TARGET32_LIBOPCODES_CFILES = \ arm-dis.c \ avr-dis.c \ bfin-dis.c \ + bpf-asm.c \ + bpf-desc.c \ + bpf-dis.c \ + bpf-ibld.c \ + bpf-opc.c \ cgen-asm.c \ cgen-bitset.c \ cgen-dis.c \ @@ -570,6 +575,9 @@ TARGET32_LIBOPCODES_CFILES = \ lm32-ibld.c \ lm32-opc.c \ lm32-opinst.c \ + loongarch-opc.c \ + loongarch-dis.c \ + loongarch-coder.c \ m10200-dis.c \ m10200-opc.c \ m10300-dis.c \ @@ -626,6 +634,8 @@ TARGET32_LIBOPCODES_CFILES = \ ppc-opc.c \ pru-dis.c \ pru-opc.c \ + riscv-dis.c \ + riscv-opc.c \ rl78-decode.c \ rl78-dis.c \ rx-decode.c \ -- 2.25.1