Revert "[gdb] Fix warning in foreach_arch selftests"
authorTom de Vries <tdevries@suse.de>
Fri, 3 Jun 2022 13:34:50 +0000 (15:34 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 3 Jun 2022 13:34:50 +0000 (15:34 +0200)
commit0e02119e65b566cad575cc57fe423dadab855a56
tree2e87adc976564f94062e7d8eec9d70483e44e4cc
parenta98600052eb680249abae0083a7c24d7e57f7379
Revert "[gdb] Fix warning in foreach_arch selftests"

This reverts commit fc18b1c5afd ("[gdb] Fix warning in foreach_arch
selftests").

The commit introduced regressions for an --enable-targets=all build:
...
Running selftest print_one_insn::A6.^M
Self test failed: Cannot access memory at address 0x0^M
...
and while investigating those I realized that the commit fc18b1c5afd
complicates things by trying to set the current osabi.

So, revert the patch in preparation for a simpler solution.

Tested on x86_64-linux.
gdb/osabi.c
gdb/osabi.h
gdb/selftest-arch.c