aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.c
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/nto-tdep.c
parent2693a26216c329bd7ec2aae7743409f572de4fa5 (diff)
downloadbinutils-992f1ddc3be1f5195f18beaa801ac50f284b10c5.zip
binutils-992f1ddc3be1f5195f18beaa801ac50f284b10c5.tar.gz
binutils-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/nto-tdep.c')
-rw-r--r--gdb/nto-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 47d8a2b..1b18de1 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -87,7 +87,8 @@ nto_map_arch_to_cputype (const char *arch)
}
int
-nto_find_and_open_solib (char *solib, unsigned o_flags, char **temp_pathname)
+nto_find_and_open_solib (const char *solib, unsigned o_flags,
+ char **temp_pathname)
{
char *buf, *arch_path, *nto_root;
const char *endian;