summaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 289b84f34bf..43655e6265e 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -537,7 +537,8 @@ update_solib_list (int from_tty, struct target_ops *target)
FROM_TTY and TARGET are as described for update_solib_list, above. */
void
-solib_add (char *pattern, int from_tty, struct target_ops *target, int readsyms)
+solib_add (const char *pattern, int from_tty, struct target_ops *target,
+ int readsyms)
{
struct so_list *gdb;
@@ -618,7 +619,7 @@ solib_add (char *pattern, int from_tty, struct target_ops *target, int readsyms)
*/
static void
-info_sharedlibrary_command (char *ignore, int from_tty)
+info_sharedlibrary_command (const char *ignore, int from_tty)
{
register struct so_list *so = NULL; /* link map state variable */
int header_done = 0;
@@ -824,7 +825,7 @@ in_solib_dynsym_resolve_code (CORE_ADDR pc)
*/
static void
-sharedlibrary_command (char *args, int from_tty)
+sharedlibrary_command (const char *args, int from_tty)
{
dont_repeat ();
solib_add (args, from_tty, (struct target_ops *) 0, 1);
@@ -843,14 +844,14 @@ sharedlibrary_command (char *args, int from_tty)
are not discarded. Also called from remote.c. */
void
-no_shared_libraries (char *ignored, int from_tty)
+no_shared_libraries (const char *ignored, int from_tty)
{
objfile_purge_solibs ();
do_clear_solib (NULL);
}
static void
-reload_shared_libraries (char *ignored, int from_tty)
+reload_shared_libraries (const char *ignored, int from_tty)
{
no_shared_libraries (NULL, from_tty);
solib_add (NULL, from_tty, NULL, auto_solib_add);