qemu/gdbstub
Ilya Leoshkevich 9853485dd4 gdbstub: Allow the %d placeholder in the socket path
Just like for QEMU_LOG_FILENAME, replace %d with PID in the GDB socket
path. This allows running multi-process applications with, e.g.,
export QEMU_GDB=/tmp/qemu-%d.sock. Currently this is not possible,
since the first process will cause the subsequent ones to fail due to
not being able to bind() the GDB socket.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20250117001542.8290-2-iii@linux.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250207153112.3939799-11-alex.bennee@linaro.org>
2025-02-10 13:47:58 +00:00
..
gdbstub.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
internals.h gdbstub: Make hex conversion function non-internal 2024-07-05 12:35:19 +01:00
meson.build meson: Drop the .fa library suffix 2024-07-03 18:41:26 +02:00
syscalls.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
system.c system: propagate Error to gdbserver_start (and other device setups) 2025-01-17 10:44:25 +00:00
trace-events gdbstub: Rename 'softmmu' -> 'system' 2023-10-07 19:02:59 +02:00
trace.h gdbstub: move into its own sub directory 2022-10-06 11:53:41 +01:00
user-target.c gdbstub/user-target: fix gdbserver int format (%d -> %x) 2025-01-30 13:01:22 +03:00
user.c gdbstub: Allow the %d placeholder in the socket path 2025-02-10 13:47:58 +00:00