* config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
[deliverable/binutils-gdb.git] / gdb / osfsolib.c
index 98224ef5a6e25ece3d22ca58cc621039ece040fa..c86f084c2f975919d92c38b1ce657f534a898cc6 100644 (file)
@@ -130,9 +130,6 @@ xfer_link_map_member PARAMS ((struct so_list *, struct link_map *));
 static void
 solib_map_sections PARAMS ((struct so_list *));
 
-void
-_initialize_solib PARAMS ((void));
-
 /*
 
 LOCAL FUNCTION
@@ -538,7 +535,7 @@ solib_add (arg_string, from_tty, target)
            {
              if (from_tty)
                {
-                 printf ("Symbols already loaded for %s\n", so -> so_name);
+                 printf_unfiltered ("Symbols already loaded for %s\n", so -> so_name);
                }
            }
          else if (catch_errors
@@ -579,7 +576,7 @@ info_sharedlibrary_command (ignore, from_tty)
   
   if (exec_bfd == NULL)
     {
-      printf ("No exec file.\n");
+      printf_unfiltered ("No exec file.\n");
       return;
     }
   while ((so = find_solib (so)) != NULL)
@@ -591,7 +588,7 @@ info_sharedlibrary_command (ignore, from_tty)
 
          if (!header_done)
            {
-             printf("%-20s%-20s%-12s%s\n", "From", "To", "Syms Read",
+             printf_unfiltered("%-20s%-20s%-12s%s\n", "From", "To", "Syms Read",
                     "Shared Object Library");
              header_done++;
            }
@@ -600,15 +597,15 @@ info_sharedlibrary_command (ignore, from_tty)
              txt_start = (unsigned long) so -> textsection -> addr;
              txt_end = (unsigned long) so -> textsection -> endaddr;
            }
-         printf ("%-20s", local_hex_string_custom (txt_start, "08l"));
-         printf ("%-20s", local_hex_string_custom (txt_end, "08l"));
-         printf ("%-12s", so -> symbols_loaded ? "Yes" : "No");
-         printf ("%s\n",  so -> so_name);
+         printf_unfiltered ("%-20s", local_hex_string_custom (txt_start, "08l"));
+         printf_unfiltered ("%-20s", local_hex_string_custom (txt_end, "08l"));
+         printf_unfiltered ("%-12s", so -> symbols_loaded ? "Yes" : "No");
+         printf_unfiltered ("%s\n",  so -> so_name);
        }
     }
   if (so_list_head == NULL)
     {
-      printf ("No shared libraries loaded at this time.\n");   
+      printf_unfiltered ("No shared libraries loaded at this time.\n");        
     }
 }
 
@@ -739,16 +736,22 @@ solib_create_inferior_hook()
  
   clear_proceed_status ();
   stop_soon_quietly = 1;
-  stop_signal = 0;
+  stop_signal = TARGET_SIGNAL_0;
   do
     {
-      target_resume (inferior_pid, 0, stop_signal);
+      target_resume (-1, 0, stop_signal);
       wait_for_inferior ();
     }
-  while (stop_signal != SIGTRAP);
-  stop_soon_quietly = 0;
-
+  while (stop_signal != TARGET_SIGNAL_TRAP);
+
+  /*  solib_add will call reinit_frame_cache via symbol_file_add.
+      But we are stopped in the runtime loader and we do not have symbols
+      for the runtime loader. So heuristic_proc_start will be called
+      and will put out an annoying warning.
+      Resetting stop_soon_quietly after symbol loading suppresses
+      the warning.  */
   solib_add ((char *) 0, 0, (struct target_ops *) 0);
+  stop_soon_quietly = 0;
 }
 
 
This page took 0.024553 seconds and 4 git commands to generate.