From: Tom Tromey Date: Mon, 21 Jul 2014 23:05:16 +0000 (-0600) Subject: constify solib_add X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=414842dc7ae1d398fca1bda9a20a89d51b7c2f09;p=binutils-gdb.git constify solib_add This constifies the "pattern" argument to solib_add. 2014-07-24 Tom Tromey * solib.c (solib_add): Make "pattern" const. * solib.h (solib_add): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 944c2457228..608bfb88424 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-24 Tom Tromey + + * solib.c (solib_add): Make "pattern" const. + * solib.h (solib_add): Update. + 2014-07-24 Tom Tromey * remote.c (remote_serial_open, print_packet, putpkt) diff --git a/gdb/solib.c b/gdb/solib.c index e0afca0a2ee..c8f141fba79 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -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; diff --git a/gdb/solib.h b/gdb/solib.h index 29fe8f73268..4a7f56e4281 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -33,7 +33,7 @@ extern void clear_solib (void); /* Called to add symbols from a shared library to gdb's symbol table. */ -extern void solib_add (char *, int, struct target_ops *, int); +extern void solib_add (const char *, int, struct target_ops *, int); extern int solib_read_symbols (struct so_list *, int); /* Function to be called when the inferior starts up, to discover the