[PATCH v2] Avoid self-test failures on x86-linux

Tom Tromey tromey@adacore.com
Fri Oct 29 13:31:20 GMT 2021


>>>>> "Tom" == Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> The disassembly tests in "maint selftest" will fail on x86-linux.
Tom> This happens because opcodes rejects an attempt to disassemble for an
Tom> arch with a 64-bit address size when bfd_vma is 32-bit.

Tom> This patch avoids this problem by avoiding the test in this case.  I
Tom> chose to do it this way because this seems to be the only situation
Tom> where opcodes checks the size of bfd_vma.

Tom> For v2 of this patch, I've also updated memory_error_test to do the
Tom> same thing.  This is needed due to the "improve error reporting from
Tom> the disassembler" patch.

I'm checking this in.

Tom


More information about the Gdb-patches mailing list