aboutsummaryrefslogtreecommitdiff
path: root/gdb/solist.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-12-20 17:07:19 +0000
committerPedro Alves <palves@redhat.com>2016-12-20 17:07:19 +0000
commit992f1ddc3be1f5195f18beaa801ac50f284b10c5 (patch)
treee2f66588b82457a9f1066212766f920b6e0db65a /gdb/solist.h
parent2693a26216c329bd7ec2aae7743409f572de4fa5 (diff)
downloadgdb-992f1ddc3be1f5195f18beaa801ac50f284b10c5.zip
gdb-992f1ddc3be1f5195f18beaa801ac50f284b10c5.tar.gz
gdb-992f1ddc3be1f5195f18beaa801ac50f284b10c5.tar.bz2
gdb: Constify solib_find
gdb/ChangeLog: 2016-12-20 Pedro Alves <palves@redhat.com> * 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) <find_and_open_solib>: Constify 'soname' parameter. (exec_file_find, solib_find): Constify 'in_pathname' parameter.
Diffstat (limited to 'gdb/solist.h')
-rw-r--r--gdb/solist.h6
1 files changed, 3 insertions, 3 deletions
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);