From 3641da115a352b1bd2da45677547be905eca59e2 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 21 May 2013 08:16:10 +0000 Subject: gdb/ Code cleanup: constification. * solib.c (solib_ops): Make return type and ops variable type const. (set_solib_ops): Make the new_ops parameter and ops variable const. (solib_find, solib_map_sections, clear_so, free_so, update_solib_list) (solib_add, solib_keep_data_in_core, clear_solib) (solib_create_inferior_hook, in_solib_dynsym_resolve_code) (reload_shared_libraries, solib_global_lookup): Make the ops variable const. * solib.h (set_solib_ops): Make the new_ops parameter const. --- gdb/solib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/solib.h') diff --git a/gdb/solib.h b/gdb/solib.h index b811866..8829d16 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -71,7 +71,7 @@ extern void no_shared_libraries (char *ignored, int from_tty); /* Set the solib operations for GDBARCH to NEW_OPS. */ extern void set_solib_ops (struct gdbarch *gdbarch, - struct target_so_ops *new_ops); + const struct target_so_ops *new_ops); /* Return non-zero if NAME is the libpthread shared library. */ -- cgit v1.1