[1/6] Make remote_fio_func_map 'const'
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
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(-)
@@ -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[] = {