[PATCH] Move 64-bit BFD files from ALL_TARGET_OBS to ALL_64_TARGET_OBS

Luis Machado luis.machado@arm.com
Thu May 26 17:45:56 GMT 2022


On 5/26/22 14:57, Simon Marchi wrote:
> 
> 
> On 2022-05-26 03:22, Luis Machado via Gdb-patches wrote:
>> On 5/5/22 10:06, Luis Machado via Gdb-patches wrote:
>>> On 5/3/22 22:51, Luis Machado via Gdb-patches wrote:
>>>> On 5/3/22 12:30, Luis Machado via Gdb-patches wrote:
>>>>> On 5/3/22 12:24, Pedro Alves wrote:
>>>>>> On 2022-05-03 12:19, Luis Machado via Gdb-patches wrote:
>>>>>>
>>>>>>> ---
>>>>>>>    gdb/Makefile.in | 13 +++++++------
>>>>>>>    1 file changed, 7 insertions(+), 6 deletions(-)
>>>>>>>
>>>>>>> diff --git a/gdb/Makefile.in b/gdb/Makefile.in
>>>>>>> index 418094775a5..d80087749de 100644
>>>>>>> --- a/gdb/Makefile.in
>>>>>>> +++ b/gdb/Makefile.in
>>>>>>> @@ -715,9 +715,12 @@ ALL_64_TARGET_OBS = \
>>>>>>>        arch/aarch64-mte-linux.o \
>>>>>>>        arch/amd64.o \
>>>>>>>        arch/riscv.o \
>>>>>>> +    bpf-tdep.o \
>>>>>>>        ia64-linux-tdep.o \
>>>>>>>        ia64-tdep.o \
>>>>>>>        ia64-vms-tdep.o \
>>>>>>> +    loongarch-linux-tdep.o \
>>>>>>> +    loongarch-tdep.o \
>>>>>>>        mips-fbsd-tdep.o \
>>>>>>>        mips-linux-tdep.o \
>>>>>>>        mips-netbsd-tdep.o \
>>>>>>> @@ -734,7 +737,10 @@ ALL_64_TARGET_OBS = \
>>>>>>>        sparc64-netbsd-tdep.o \
>>>>>>>        sparc64-obsd-tdep.o \
>>>>>>>        sparc64-sol2-tdep.o \
>>>>>>> -    sparc64-tdep.o
>>>>>>> +    sparc64-tdep.o \
>>>>>>> +    tilegx-linux-tdep.o \
>>>>>>> +    tilegx-tdep.o
>>>>>>> +
>>>>>>
>>>>>> Spurious empty line.
>>>>>
>>>>> Fixed now.
>>>>>
>>>>>>
>>>>>> In opcodes, tilegx is in TARGET32_LIBOPCODES_CFILES.  So why did we need to move that one?
>>>>>
>>>>> *sigh*... I think that needs to be fixed as well.
>>>>>
>>>>> opcodes/disassemble.c defines ARCH_tilegx if BFD64 is defined, which makes it a 64-bit BFD target. So a 32-bit build makes it not register a disassembler function (leading to GDB internal errors).
>>>>>
>>>>> TILE-Gx is a 64-bit core according to https://en.wikipedia.org/wiki/TILE-Gx. So I suppose we need to move it from TARGET32_LIBOPCODES_CFILES to TARGET64_LIBOPCODES_CFILES.
>>>>
>>>> Patch to binutils sent here: https://sourceware.org/pipermail/binutils/2022-May/120651.html
>>>
>>> I've pushed the binutils patch. Are there any objections to the gdb-side patch?
>>
>> Ping?
>>
>> 32-bit builds with --enable-targets=all are still failing due to the misplacement of these places.
>>
>> If we drop the tilegx change, would that be acceptable?
> 
> You might have not received, but Pedro said "Nope.  Please go ahead and merge it." on
> May 5th.
> 
> https://pi.simark.ca/gdb-patches/de20c1c0-6945-0de4-e3e3-11522fc74458@arm.com/T/#md5f08ad8f5b43fb3c3d0f731de2c807260197142

*sigh* My inbound mail server seems to not like Pedro, so randomly decides to drop his e-mails.

I'll double check the list from now on. Thanks for the pointer.

> 
> Simon



More information about the Gdb-patches mailing list