Use ".word 0x0012 # Entry mask: r1 r2 >" instead of just "Entry mask: < r1 ... >"
[deliverable/binutils-gdb.git] / gdb / kod.c
index e2bae9133840e7710fe7dbb21e4983822e4b6fc0..7d9f5be934b6b603e43700928331455aeba0ad82 100644 (file)
--- a/gdb/kod.c
+++ b/gdb/kod.c
@@ -117,7 +117,7 @@ gdb_kod_query (char *arg, char *result, int *maxsiz)
   /* See if buffer can hold the query (usually it can, as the query is
      short).  */
   if (strlen (arg) >= bufsiz)
-    error ("kod: query argument too long");
+    error (_("kod: query argument too long"));
 
   /* Send actual request.  */
   if (target_read_partial (&current_target, TARGET_OBJECT_KOD,
@@ -134,18 +134,6 @@ kod_set_os (char *arg, int from_tty, struct cmd_list_element *command)
 {
   char *p;
 
-  /* NOTE: cagney/2002-03-17: The add_show_from_set() function clones
-     the set command passed as a parameter.  The clone operation will
-     include (BUG?) any ``set'' command callback, if present.
-     Commands like ``info set'' call all the ``show'' command
-     callbacks.  Unfortunatly, for ``show'' commands cloned from
-     ``set'', this includes callbacks belonging to ``set'' commands.
-     Making this worse, this only occures if add_show_from_set() is
-     called after add_cmd_sfunc() (BUG?).  */
-
-  if (cmd_type (command) != set_cmd)
-    return;
-
   /* If we had already had an open OS, close it.  */
   if (gdb_kod_close)
     (*gdb_kod_close) ();
@@ -178,7 +166,7 @@ kod_set_os (char *arg, int from_tty, struct cmd_list_element *command)
 
       /* Add kod related info commands to gdb.  */
       add_info (operating_system, info_kod_command,
-               "Displays information about Kernel Objects.");
+               _("Displays information about Kernel Objects."));
 
       p = strrchr (kodlib, '-');
       if (p != NULL)
@@ -224,7 +212,7 @@ load_kod_library (char *lib)
       gdb_kod_close = cisco_kod_close;
     }
   else
-    error ("Unknown operating system: %s\n", operating_system);
+    error (_("Unknown operating system: %s."), operating_system);
 }
 
 void
@@ -232,10 +220,10 @@ _initialize_kod (void)
 {
   struct cmd_list_element *c;
 
-  c = add_set_cmd ("os", no_class, var_string,
-                  (char *) &operating_system,
-                  "Set operating system",
-                  &setlist);
-  set_cmd_sfunc (c, kod_set_os);
-  add_show_from_set (c, &showlist);
+  add_setshow_string_cmd ("os", no_class, &operating_system, _("\
+Set operating system"), _("\
+Show operating system"), NULL,
+                         kod_set_os,
+                         NULL, /* FIXME: i18n: */
+                         &setlist, &showlist);
 }
This page took 0.025004 seconds and 4 git commands to generate.