|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 1/3] linux-user: Allow gdbstub to ignore page protection |
Date: | Wed, 10 Jan 2024 16:47:06 +1100 |
User-agent: | Mozilla Thunderbird |
On 1/10/24 10:05, Ilya Leoshkevich wrote:
gdbserver ignores page protection by virtue of using /proc/$pid/mem. Teach qemu gdbstub to do this too. This will not work if /proc is not mounted; accept this limitation. One alternative is to temporarily grant the missing PROT_* bit, but this is inherently racy. Another alternative is self-debugging with ptrace(POKE), which will break if QEMU itself is being debugged - a much more severe limitation. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |