gdb: clear regcaches at the start of regcaches selftest
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 20 Aug 2020 14:07:21 +0000 (10:07 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 20 Aug 2020 14:07:21 +0000 (10:07 -0400)
commit3ee93972f9dbbb77a7cd4f63c6c7bb66a8b12c71
tree30889ffcdcd329127c834fe622e08200a9817955
parent01147b208215ae457e7ef2d5a105c9dac93d955a
gdb: clear regcaches at the start of regcaches selftest

It currently does not work to run the `regcaches` selftest while
debugging something.  This is because we expect that there exists no
regcache at the start of the test.  If we are debugging something, there
might exist some regcaches.

Fix it by making the test clear regcaches at the start.

While at it, make the test clean up after it self and clear the
regcaches at the end too.

gdb/ChangeLog:

* regcache.c (regcaches_test): Call registers_changed.

Change-Id: I9d4f83ecb0ff9721a71e2c5cbd19e6e6d4e6c30c
gdb/ChangeLog
gdb/regcache.c
This page took 0.027264 seconds and 4 git commands to generate.