New option "set print symbol-loading".
[deliverable/binutils-gdb.git] / gdb / solib.c
index 3350bfdd281ca7befdc3f77bebe75cc902b8aeb1..e0afca0a2eec69de39f45461ec373a5d0e3f5849 100644 (file)
@@ -650,7 +650,7 @@ solib_read_symbols (struct so_list *so, int flags)
                           so->so_name);
       else
        {
-         if (from_tty || info_verbose)
+         if (print_symbol_loading_p (from_tty, 0, 1))
            printf_unfiltered (_("Loaded symbols for %s\n"), so->so_name);
          so->symbols_loaded = 1;
        }
@@ -905,6 +905,17 @@ solib_add (char *pattern, int from_tty,
 {
   struct so_list *gdb;
 
+  if (print_symbol_loading_p (from_tty, 0, 0))
+    {
+      if (pattern != NULL)
+       {
+         printf_unfiltered (_("Loading symbols for shared libraries: %s\n"),
+                            pattern);
+       }
+      else
+       printf_unfiltered (_("Loading symbols for shared libraries.\n"));
+    }
+
   current_program_space->solib_add_generation++;
 
   if (pattern)
@@ -1277,6 +1288,9 @@ reload_shared_libraries_1 (int from_tty)
   struct so_list *so;
   struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
 
+  if (print_symbol_loading_p (from_tty, 0, 0))
+    printf_unfiltered (_("Loading symbols for shared libraries.\n"));
+
   for (so = so_list_head; so != NULL; so = so->next)
     {
       char *filename, *found_pathname = NULL;
This page took 0.052338 seconds and 4 git commands to generate.