forked from Imagelibrary/binutils-gdb
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:
@@ -617,7 +617,7 @@ darwin_lookup_lib_symbol (struct objfile *objfile,
|
||||
}
|
||||
|
||||
static gdb_bfd_ref_ptr
|
||||
darwin_bfd_open (char *pathname)
|
||||
darwin_bfd_open (const char *pathname)
|
||||
{
|
||||
int found_file;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user