Re: [PATCH] gdbstub: Implement qqemu.Pid packet

2025-05-07 Thread Alex Bennée
Dominik Czarnota writes: > Hi, > > We need the `qqemu.Pid` packet only for the QEMU system part in order > to figure out the page tables and to do it efficiently. Page tables of QEMU itself or the page tables for the guest its managing? > We do have a fallback to using `monitor info mem` but it

Re: [PATCH] gdbstub: Implement qqemu.Pid packet

2025-05-07 Thread Dominik Czarnota
Hi, We need the `qqemu.Pid` packet only for the QEMU system part in order to figure out the page tables and to do it efficiently. We do have a fallback to using `monitor info mem` but it is slow, (iirc) doesn't provide all the necessary information and (iirc) isn't implemented on all architectures

Re: [PATCH] gdbstub: Implement qqemu.Pid packet

2025-05-02 Thread Alex Bennée
Dominik 'Disconnect3d' Czarnota writes: > This patch adds support for the `qqemu.Pid` packet to the qemu > gdbstub which can be used by clients to get the QEMU process PID. > > This is useful for plugins like Pwndbg [0] or gdb-pt-dump in order to > inspect the QEMU process memory through the /pro

[PATCH] gdbstub: Implement qqemu.Pid packet

2025-04-04 Thread Dominik 'Disconnect3d' Czarnota
This patch adds support for the `qqemu.Pid` packet to the qemu gdbstub which can be used by clients to get the QEMU process PID. This is useful for plugins like Pwndbg [0] or gdb-pt-dump in order to inspect the QEMU process memory through the /proc/self/{maps,mem} interfaces. Without this feature,