constify solib_add

This constifies the "pattern" argument to solib_add.

2014-07-24  Tom Tromey  <tromey@redhat.com>

	* solib.c (solib_add): Make "pattern" const.
	* solib.h (solib_add): Update.
This commit is contained in:
Tom Tromey
2014-07-21 17:05:16 -06:00
parent baa336ce7b
commit 414842dc7a
3 changed files with 7 additions and 2 deletions

View File

@@ -900,7 +900,7 @@ libpthread_solib_p (struct so_list *so)
FROM_TTY and TARGET are as described for update_solib_list, above. */
void
solib_add (char *pattern, int from_tty,
solib_add (const char *pattern, int from_tty,
struct target_ops *target, int readsyms)
{
struct so_list *gdb;