You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/gdbstub
Cédric Le Goater d7e1df7699 gdbstub: Fix const qualifier build errors with recent glibc
A recent change in glibc 2.42.9000 [1] changes the return type of
strstr() and other string functions to be 'const char *' when the
input is a 'const char *'. This breaks the build in :

../gdbstub/user.c:322:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  322 |     pid_placeholder = strstr(path, "%d");
      |                     ^
Fix this by changing the type of the variables that store the result
of these functions to 'const char *'.

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20251215101937.281722-5-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
1 week ago
..
gdbstub.c Fix const qualifier build errors with recent glibc 2 weeks ago
internals.h target/arm: Increase MAX_PACKET_LENGTH for SME ZA remote gdb debugging 3 months ago
meson.build meson: remove lib{system, user}_ss aliases 7 months ago
syscalls.c gdbstub: Fix %s formatting 2 months ago
system.c char: rename CharBackend->CharFrontend 2 months ago
trace-events gdbstub: Rename 'softmmu' -> 'system' 2 years ago
trace.h gdbstub: move into its own sub directory 3 years ago
user-target.c gdbstub: Prefer cached CpuClass over CPU_GET_CLASS() macro 10 months ago
user.c gdbstub: Fix const qualifier build errors with recent glibc 1 week ago