From 692d6f9760bc67b68a5c96baac47067fd7dfa711 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Feb 2018 13:34:45 -0700 Subject: Constify target_so_ops::bfd_open This constifies the bfd_open method of struct target_so_ops. gdb/ChangeLog 2018-02-14 Tom Tromey * solist.h (struct target_so_ops) : Make pathname const. (solib_bfd_open): Make pathname const. * solib.c (solib_bfd_open): Make pathname const. * solib-spu.c (spu_bfd_fopen): Make name const. (spu_bfd_open): Make pathname const. * solib-darwin.c (darwin_bfd_open): Make pathname const. * solib-aix.c (solib_aix_bfd_open): Make pathname const. --- gdb/solib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/solib.c') diff --git a/gdb/solib.c b/gdb/solib.c index 41fba90..f3eea39 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -478,7 +478,7 @@ solib_bfd_fopen (const char *pathname, int fd) /* Find shared library PATHNAME and open a BFD for it. */ gdb_bfd_ref_ptr -solib_bfd_open (char *pathname) +solib_bfd_open (const char *pathname) { int found_file; const struct bfd_arch_info *b; -- cgit v1.1