Re: [PATCH v2 1/3] linux-user: Allow gdbstub to ignore page protection

2024-01-09 Thread Richard Henderson
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 inhere

[PATCH v2 1/3] linux-user: Allow gdbstub to ignore page protection

2024-01-09 Thread Ilya Leoshkevich
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-debug