constify solib_add
authorTom Tromey <tromey@redhat.com>
Mon, 21 Jul 2014 23:05:16 +0000 (17:05 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 24 Jul 2014 17:30:02 +0000 (11:30 -0600)
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.

gdb/ChangeLog
gdb/solib.c
gdb/solib.h

index 944c2457228cf5a0ff8bc7d3f3fc6f46b71bc03e..608bfb88424599e2f7ae9cf4fa41b1f1c033d7d5 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-24  Tom Tromey  <tromey@redhat.com>
+
+       * solib.c (solib_add): Make "pattern" const.
+       * solib.h (solib_add): Update.
+
 2014-07-24  Tom Tromey  <tromey@redhat.com>
 
        * remote.c (remote_serial_open, print_packet, putpkt)
index e0afca0a2eec69de39f45461ec373a5d0e3f5849..c8f141fba795577021597b3c445d9c77f6dfc573 100644 (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;
index 29fe8f73268d8df28910fadd2428653b1f66bc21..4a7f56e4281c4e058a6ba73bd312c1857979dfc6 100644 (file)
@@ -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
This page took 0.030518 seconds and 4 git commands to generate.