[gdb] Avoid warnings in cooked_{read,write}_test for m68hc11
authorTom de Vries <tdevries@suse.de>
Mon, 13 Jun 2022 15:20:07 +0000 (17:20 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Jun 2022 15:20:07 +0000 (17:20 +0200)
commitc722093960edc1291df0a19ab0136fdb8934bdc2
tree3d8e0be94feb80be3bc720e89225d1ee441ca846
parent208b57e53ed98106d20c7314e88d0a7225a8aa1d
[gdb] Avoid warnings in cooked_{read,write}_test for m68hc11

With --enable-targets=all we have:
...
$ gdb -q -batch -ex "maint selftest"
  ...
Running selftest regcache::cooked_read_test::m68hc11.
warning: No frame soft register found in the symbol table.
Stack backtrace will not work.
Running selftest regcache::cooked_read_test::m68hc12.
warning: No frame soft register found in the symbol table.
Stack backtrace will not work.
Running selftest regcache::cooked_read_test::m68hc12:HCS12.
warning: No frame soft register found in the symbol table.
Stack backtrace will not work.
...

Likewise for regcache::cooked_write_test.

The warning has no use in the selftest context.

Fix this by skipping the specific selftests.

Tested on x86_64-linux.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29224
gdb/regcache.c