Minor bug fixes from last big checkin.
[deliverable/binutils-gdb.git] / gdb / core.c
index 4ae49331a1bd53c4a0312f0134ed314e5db7cd92..9c7d27ea6a8fc367dfed62ad87c64e1ac4ec845f 100644 (file)
@@ -180,7 +180,7 @@ core_open (filename, from_tty)
 
     /* Add symbols and section mappings for any shared libraries */
 #ifdef SOLIB_ADD
-    (void) catch_errors (solib_add_stub, (char *)from_tty, (char *)0);
+    catch_errors (solib_add_stub, (char *)from_tty, (char *)0);
 #endif
 
     /* Now, set up the frame cache, and print the top of stack */
@@ -189,9 +189,9 @@ core_open (filename, from_tty)
     select_frame (get_current_frame (), 0);
     print_stack_frame (selected_frame, selected_frame_level, 1);
   } else {
-    printf (
-"Warning: you won't be able to access this core file until you terminate\n\
-your %s; do ``info files''\n", current_target->to_longname);
+    warning (
+"you won't be able to access this core file until you terminate\n\
+your %s; do ``info files''", current_target->to_longname);
   }
 }
 
@@ -263,9 +263,9 @@ validate_files ()
   if (exec_bfd && core_bfd)
     {
       if (!core_file_matches_executable_p (core_bfd, exec_bfd))
-       printf ("Warning: core file may not match specified executable file.\n");
+       warning ("core file may not match specified executable file.");
       else if (bfd_get_mtime(exec_bfd) > bfd_get_mtime(core_bfd))
-       printf ("Warning: exec file is newer than core file.\n");
+       warning ("exec file is newer than core file.");
     }
 }
 
This page took 0.023691 seconds and 4 git commands to generate.