]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Workaround GDBserver register cache management
authorLuis Machado <luis.machado@linaro.org>
Wed, 15 Dec 2021 13:24:35 +0000 (10:24 -0300)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:59:24 +0000 (15:59 -0700)
commit5096a9b0162ed479b066041c9081d6a451560121
treea71467c2a0ce5795d9846694eba11b67516e5e76
parent49295e420a37c05e62acbc4b1b272820d6ff0247
Workaround GDBserver register cache management

Given X and C registers have an overlap, if we write to an X register, we need
to fetch the C registers again so we get updated values (side effects).  The
same happens when we attempt to write to the lower half of C registers, we need
to fetch the X registers again so we get updated values.

This patch forces the register cache to get updated values after a register
store request.
gdbserver/linux-aarch64-low.cc
gdbserver/regcache.cc