[PATCH 1/6] Make remote_fio_func_map 'const'

Tom Tromey
2023-12-31T20:27:09Z

This changes remote_fio_func_map to be const, letting it move into the
readonly data section.
---
gdb/remote-fileio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 10bc86c1ba5..367edb54f74 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -1101,7 +1101,7 @@ remote_fileio_func_system (remote_target *remote, char *buf)
remote_fileio_return_success (remote, WEXITSTATUS (ret));
}

-static struct {
+static const struct {
const char *name;
void (*func)(remote_target *remote, char *);
} remote_fio_func_map[] = {

--
2.43.0