Remove redundant test in BFD_ASSERT
[deliverable/binutils-gdb.git] / gdb / m32r-rom.c
index 403d7535a44daf6f68dac6b84f7695da77470a13..846233ce1e688cedf14f4f529f30fbe6f346994d 100644 (file)
@@ -28,6 +28,7 @@
 #include "defs.h"
 #include "gdbcore.h"
 #include "target.h"
+#include "exceptions.h"
 #include "monitor.h"
 #include "serial.h"
 #include "symtab.h"
@@ -125,9 +126,9 @@ m32r_load (char *filename, int from_tty)
 
   abfd = bfd_openr (filename, 0);
   if (!abfd)
-    error ("Unable to open file %s\n", filename);
+    error (_("Unable to open file %s."), filename);
   if (bfd_check_format (abfd, bfd_object) == 0)
-    error ("File is not an object file\n");
+    error (_("File is not an object file."));
   start_time = time (NULL);
 #if 0
   for (s = abfd->sections; s; s = s->next)
@@ -414,7 +415,7 @@ m32r_upload_command (char *args, int from_tty)
   monitor_printf ("ust\r");
   resp_len = monitor_expect_prompt (buf, sizeof (buf));
   if (!strchr (buf, ':'))
-    error ("No ethernet connection!");
+    error (_("No ethernet connection!"));
 
   if (board_addr == 0)
     {
@@ -561,22 +562,22 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
   add_setshow_string_cmd ("download-path", class_obscure, &download_path, "\
 Set the default path for downloadable SREC files.", "\
 Show the default path for downloadable SREC files.", "\
-Determines the default path for downloadable SREC files.", "\
-The default path for downloadable SREC files is %s.",
+Determines the default path for downloadable SREC files.",
+                         NULL, /* PRINT: The default path for downloadable SREC files is %s.  */
                   NULL, NULL, &setlist, &showlist);
 
   add_setshow_string_cmd ("board-address", class_obscure, &board_addr, "\
 Set IP address for M32R-EVA target board.", "\
 Show IP address for M32R-EVA target board.", "\
-Determine the IP address for M32R-EVA target board.", "\
-IP address for M32R-EVA target board is %s",
+Determine the IP address for M32R-EVA target board.",
+                         NULL, /* PRINT: IP address for M32R-EVA target board is %s.  */
                   NULL, NULL, &setlist, &showlist);
 
   add_setshow_string_cmd ("server-address", class_obscure, &server_addr, "\
 Set IP address for download server (GDB's host computer).", "\
 Show IP address for download server (GDB's host computer).", "\
-Determine the IP address for download server (GDB's host computer).", "\
-IP address for download server (GDB's host computer) is %s.",
+Determine the IP address for download server (GDB's host computer).",
+                         NULL, /* PRINT: IP address for download server (GDB's host computer) is %s.  */
                   NULL, NULL, &setlist, &showlist);
 
   add_com ("upload", class_obscure, m32r_upload_command,
This page took 0.027754 seconds and 4 git commands to generate.