diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-08-20 10:07:21 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-08-20 10:07:21 -0400 |
commit | 3ee93972f9dbbb77a7cd4f63c6c7bb66a8b12c71 (patch) | |
tree | 30889ffcdcd329127c834fe622e08200a9817955 /gdb/frame.c | |
parent | 01147b208215ae457e7ef2d5a105c9dac93d955a (diff) | |
download | gdb-3ee93972f9dbbb77a7cd4f63c6c7bb66a8b12c71.zip gdb-3ee93972f9dbbb77a7cd4f63c6c7bb66a8b12c71.tar.gz gdb-3ee93972f9dbbb77a7cd4f63c6c7bb66a8b12c71.tar.bz2 |
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
Diffstat (limited to 'gdb/frame.c')
0 files changed, 0 insertions, 0 deletions