diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2024-06-19 17:16:33 -0300 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2024-10-28 10:46:33 -0300 |
commit | 2f46cda83b89a4f46625163d679aed3e1ed9ea5c (patch) | |
tree | 1ff53ffabbcce76529b9d1bd8d9f2f1f57e8c22f /gdb/python/py-finishbreakpoint.c | |
parent | 917ed12066382c48459f85124cbeca1286c3bb53 (diff) | |
download | gdb-2f46cda83b89a4f46625163d679aed3e1ed9ea5c.zip gdb-2f46cda83b89a4f46625163d679aed3e1ed9ea5c.tar.gz gdb-2f46cda83b89a4f46625163d679aed3e1ed9ea5c.tar.bz2 |
gdb: Allow replayed threads to read and write pseudo registers
In an effort to support AVX instructions when recording, we need to
allow replaying threads to access pseudo registers. Currently, if
we try to do that gdb will fail in a call to validate_registers_access,
because the thread is executing so GDB thinks it is unsafe to read
pseudo registers.
When replaying, the thread is really executing for all intents and
purposes, but the execution is just having GDB change values on
registers, so it will always be safe to read and write pseudo registers.
This commit changes functions that check for register access to allow
access when we are replaying. The check to whether we are replaying must
not happen when writing a core file, as record_full_list could be nullptr,
so we only check it if the thread is executing.
As of this commit, I don't know of a way to trigger this commit without
AVX support on record, so a test isn't provided. However, as soon as
record-full supports saving ymm registers, the AVX tests will test this
as well.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-finishbreakpoint.c')
0 files changed, 0 insertions, 0 deletions