Constify target_so_ops::bfd_open
This constifies the bfd_open method of struct target_so_ops. gdb/ChangeLog 2018-02-14 Tom Tromey <tom@tromey.com> * solist.h (struct target_so_ops) <bfd_open>: 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.
This commit is contained in:
parent
e0cc99a62f
commit
692d6f9760
6 changed files with 20 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue