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

2024-01-09 Thread Richard Henderson
On 1/10/24 06:39, Ilya Leoshkevich wrote: On Wed, 2024-01-10 at 04:42 +1100, Richard Henderson wrote: On 1/9/24 10:34, 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; acce

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

2024-01-09 Thread Ilya Leoshkevich
On Wed, 2024-01-10 at 04:42 +1100, Richard Henderson wrote: > On 1/9/24 10:34, 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. > >

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

2024-01-09 Thread Richard Henderson
On 1/9/24 10:34, 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 inheren

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

2024-01-08 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