qemu-cr16/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>
2025-12-16 14:28:30 +01:00
..
gdbstub.c Fix const qualifier build errors with recent glibc 2025-12-09 21:00:15 +01:00
internals.h target/arm: Increase MAX_PACKET_LENGTH for SME ZA remote gdb debugging 2025-09-16 17:31:54 +01:00
meson.build meson: remove lib{system, user}_ss aliases 2025-05-26 17:31:06 +02:00
syscalls.c gdbstub: Fix %s formatting 2025-10-29 14:13:40 +00:00
system.c char: rename CharBackend->CharFrontend 2025-10-28 14:49:52 +01: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: Prefer cached CpuClass over CPU_GET_CLASS() macro 2025-03-09 17:00:47 +01:00
user.c gdbstub: Fix const qualifier build errors with recent glibc 2025-12-16 14:28:30 +01:00