]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle C regset write warnings better in GDBServer
authorLuis Machado <luis.machado@linaro.org>
Mon, 29 Nov 2021 12:19:39 +0000 (09:19 -0300)
committerLuis Machado <luis.machado@linaro.org>
Mon, 20 Dec 2021 13:54:49 +0000 (10:54 -0300)
commit3f6d78d98442668ff8685864a7599d905412203f
treeffb9b3750fd95242d3a02573b0ddcda00d11908f
parent01ae9258509e29d4f79511aba5ffe3d4e9a6af57
Handle C regset write warnings better in GDBServer

GDBServer handles register reads/writes a bit differently compared to GDB.

Since C register writes are only allowed with cheri.ptrace_forge_cap=1,
GDBServer will keep issuing warnings if such setting is 0.

This patch improves it by issuing a single more helpful warning to the
user. If cheri.ptrace_forge_cap is flipped, the warning will be issued
again appropriately to remind the user about it.

Bug-ID: https://git.morello-project.org/morello/binutils-gdb/-/issues/5
gdbserver/linux-aarch64-low.cc
gdbserver/linux-low.cc
gdbserver/linux-low.h