From 992f1ddc3be1f5195f18beaa801ac50f284b10c5 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 20 Dec 2016 17:07:19 +0000 Subject: gdb: Constify solib_find gdb/ChangeLog: 2016-12-20 Pedro Alves * nto-tdep.c (nto_find_and_open_solib): Constify 'solib' parameter. * nto-tdep.h (nto_find_and_open_solib): Constify 'solib' parameter. * solib.c (solib_find_1, exec_file_find, solib_find): Constify in_pathname' parameter. * solist.h (struct target_so_ops) : Constify 'soname' parameter. (exec_file_find, solib_find): Constify 'in_pathname' parameter. --- gdb/solist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/solist.h') diff --git a/gdb/solist.h b/gdb/solist.h index f709483..948ad31 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -127,7 +127,7 @@ struct target_so_ops If TEMP_PATHNAME is non-NULL: If the file is successfully opened a pointer to a malloc'd and realpath'd copy of SONAME is stored there, otherwise NULL is stored there. */ - int (*find_and_open_solib) (char *soname, + int (*find_and_open_solib) (const char *soname, unsigned o_flags, char **temp_pathname); /* Hook for looking up global symbols in a library-specific way. */ @@ -172,10 +172,10 @@ void free_so (struct so_list *so); struct so_list *master_so_list (void); /* Find main executable binary file. */ -extern char *exec_file_find (char *in_pathname, int *fd); +extern char *exec_file_find (const char *in_pathname, int *fd); /* Find shared library binary file. */ -extern char *solib_find (char *in_pathname, int *fd); +extern char *solib_find (const char *in_pathname, int *fd); /* Open BFD for shared library file. */ extern bfd *solib_bfd_fopen (char *pathname, int fd); -- cgit v1.1