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:
Tom Tromey
2018-02-13 13:34:45 -07:00
parent e0cc99a62f
commit 692d6f9760
6 changed files with 20 additions and 9 deletions

View File

@@ -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;