qemu-cr16/gdbstub
Cédric Le Goater 326e620fc0 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 various files with errors such as :

  error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
    208 |         char *pidstr = strstr(filename, "%");
        |                        ^~~~~~

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

Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209174328.698774-1-clg@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-12-09 21:00:15 +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
user-target.c gdbstub: Prefer cached CpuClass over CPU_GET_CLASS() macro 2025-03-09 17:00:47 +01:00
user.c gdbstub: Remove tb_flush uses 2025-09-24 10:29:43 -07:00