Move doc/ entries into doc/ChangeLog.
[deliverable/binutils-gdb.git] / gdb / hppa-hpux-tdep.c
index 78d2d3c64e52423b8c262ecd7674b095d637d8a0..da43b5253b415e60dd46036db39f5f4450044be3 100644 (file)
@@ -140,7 +140,7 @@ hppa32_hpux_in_solib_call_trampoline (CORE_ADDR pc, char *name)
        }
 
       /* Should never happen.  */
-      warning ("Unable to find branch in parameter relocation stub.\n");
+      warning (_("Unable to find branch in parameter relocation stub."));
       return 0;
     }
 
@@ -266,7 +266,7 @@ hppa_hpux_in_solib_return_trampoline (CORE_ADDR pc, char *name)
        }
 
       /* Should never happen.  */
-      warning ("Unable to find branch in parameter relocation stub.\n");
+      warning (_("Unable to find branch in parameter relocation stub."));
       return 0;
     }
 
@@ -406,7 +406,7 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
       /* Make sure we haven't walked outside the range of this stub.  */
       if (u != find_unwind_entry (loc))
        {
-         warning ("Unable to find branch in linker stub");
+         warning (_("Unable to find branch in linker stub"));
          return orig_pc == pc ? 0 : pc & ~0x3;
        }
 
@@ -423,7 +423,7 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
            return (hppa_extract_21 (prev_inst) + hppa_extract_17 (curr_inst)) & ~0x3;
          else
            {
-             warning ("Unable to find ldil X,%%r1 before ble Y(%%sr4,%%r1).");
+             warning (_("Unable to find ldil X,%%r1 before ble Y(%%sr4,%%r1)."));
              return orig_pc == pc ? 0 : pc & ~0x3;
            }
        }
@@ -459,14 +459,14 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
          stubsym = lookup_minimal_symbol_by_pc (loc);
          if (stubsym == NULL)
            {
-             warning ("Unable to find symbol for 0x%lx", loc);
+             warning (_("Unable to find symbol for 0x%lx"), loc);
              return orig_pc == pc ? 0 : pc & ~0x3;
            }
 
          libsym = lookup_minimal_symbol (DEPRECATED_SYMBOL_NAME (stubsym), NULL, NULL);
          if (libsym == NULL)
            {
-             warning ("Unable to find library symbol for %s\n",
+             warning (_("Unable to find library symbol for %s."),
                       DEPRECATED_SYMBOL_NAME (stubsym));
              return orig_pc == pc ? 0 : pc & ~0x3;
            }
@@ -496,7 +496,7 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
                    (read_register (HPPA_SP_REGNUM) - 8, 4)) & ~0x3;
          else
            {
-             warning ("Unable to find restore of %%rp before bv (%%rp).");
+             warning (_("Unable to find restore of %%rp before bv (%%rp)."));
              return orig_pc == pc ? 0 : pc & ~0x3;
            }
        }
@@ -557,19 +557,19 @@ hppa_skip_permanent_breakpoint (void)
    GDB can set a breakpoint on this callback and find out what
    exception event has occurred. */
 
-/* The name of the hook to be set to point to the callback function */
+/* The name of the hook to be set to point to the callback function */
 static char HP_ACC_EH_notify_hook[] = "__eh_notify_hook";
-/* The name of the function to be used to set the hook value */
+/* The name of the function to be used to set the hook value */
 static char HP_ACC_EH_set_hook_value[] = "__eh_set_hook_value";
 /* The name of the callback function in end.o */
 static char HP_ACC_EH_notify_callback[] = "__d_eh_notify_callback";
-/* Name of function in end.o on which a break is set (called by above) */
+/* Name of function in end.o on which a break is set (called by above) */
 static char HP_ACC_EH_break[] = "__d_eh_break";
-/* Name of flag (in end.o) that enables catching throws */
+/* Name of flag (in end.o) that enables catching throws */
 static char HP_ACC_EH_catch_throw[] = "__d_eh_catch_throw";
-/* Name of flag (in end.o) that enables catching catching */
+/* Name of flag (in end.o) that enables catching catching */
 static char HP_ACC_EH_catch_catch[] = "__d_eh_catch_catch";
-/* The enum used by aCC */
+/* The enum used by aCC */
 typedef enum
   {
     __EH_NOTIFY_THROW,
@@ -611,8 +611,8 @@ setup_d_pid_in_inferior (void)
   msymbol = lookup_minimal_symbol ("__d_pid", NULL, symfile_objfile);
   if (msymbol == NULL)
     {
-      warning ("Unable to find __d_pid symbol in object file.");
-      warning ("Suggest linking executable with -g (links in /opt/langtools/lib/end.o).");
+      warning (_("Unable to find __d_pid symbol in object file.\n"
+                "Suggest linking executable with -g (links in /opt/langtools/lib/end.o)."));
       return 1;
     }
 
@@ -620,8 +620,8 @@ setup_d_pid_in_inferior (void)
   store_unsigned_integer (buf, 4, PIDGET (inferior_ptid)); /* FIXME 32x64? */
   if (target_write_memory (anaddr, buf, 4))    /* FIXME 32x64? */
     {
-      warning ("Unable to write __d_pid");
-      warning ("Suggest linking executable with -g (links in /opt/langtools/lib/end.o).");
+      warning (_("Unable to write __d_pid.\n"
+                "Suggest linking executable with -g (links in /opt/langtools/lib/end.o)."));
       return 1;
     }
   return 0;
@@ -709,7 +709,7 @@ find_stub_with_shl_get (struct minimal_symbol *function, CORE_ADDR handle)
 
   target_read_memory (value_return_addr, (char *) &stub_addr, sizeof (stub_addr));
   if (stub_addr <= 0)
-    error ("call to __d_shl_get failed, error code is %d", err_value);
+    error (_("call to __d_shl_get failed, error code is %d"), err_value);
 
   return (stub_addr);
 }
@@ -724,8 +724,8 @@ cover_find_stub_with_shl_get (void *args_untyped)
 }
 
 /* Initialize exception catchpoint support by looking for the
-   necessary hooks/callbacks in end.o, etc., and set the hook value to
-   point to the required debug function
+   necessary hooks/callbacks in end.o, etc., and set the hook value
+   to point to the required debug function.
 
    Return 0 => failure
    1 => success          */
@@ -749,7 +749,7 @@ initialize_hp_cxx_exception_support (void)
   /* Detect and disallow recursion.  On HP-UX with aCC, infinite
      recursion is a possibility because finding the hook for exception
      callbacks involves making a call in the inferior, which means
-     re-inserting breakpoints which can re-invoke this code */
+     re-inserting breakpoints which can re-invoke this code */
 
   static int recurse = 0;
   if (recurse > 0)
@@ -769,7 +769,7 @@ initialize_hp_cxx_exception_support (void)
   if (!deprecated_hp_som_som_object_present)
     return 0;
 
-  /* We have a SOM executable with SOM debug info; find the hooks */
+  /* We have a SOM executable with SOM debug info; find the hooks */
 
   /* First look for the notify hook provided by aCC runtime libs */
   /* If we find this symbol, we conclude that the executable must
@@ -783,7 +783,7 @@ initialize_hp_cxx_exception_support (void)
      should *not* be tried as an alternative.
 
      ASSUMPTION: Only HP aCC code will have __eh_notify_hook defined.  
-     ASSUMPTION: HP aCC and g++ modules cannot be linked together. */
+     ASSUMPTION: HP aCC and g++ modules cannot be linked together.  */
 
   /* libCsup has this hook; it'll usually be non-debuggable */
   msym = lookup_minimal_symbol (HP_ACC_EH_notify_hook, NULL, NULL);
@@ -794,16 +794,19 @@ initialize_hp_cxx_exception_support (void)
     }
   else
     {
-      warning ("Unable to find exception callback hook (%s).", HP_ACC_EH_notify_hook);
-      warning ("Executable may not have been compiled debuggable with HP aCC.");
-      warning ("GDB will be unable to intercept exception events.");
+      warning (_("\
+Unable to find exception callback hook (%s).\n\
+Executable may not have been compiled debuggable with HP aCC.\n\
+GDB will be unable to intercept exception events."),
+              HP_ACC_EH_notify_hook);
       eh_notify_hook_addr = 0;
       hp_cxx_exception_support = 0;
       return 0;
     }
 
   /* Next look for the notify callback routine in end.o */
-  /* This is always available in the SOM symbol dictionary if end.o is linked in */
+  /* This is always available in the SOM symbol dictionary if end.o is
+     linked in. */
   msym = lookup_minimal_symbol (HP_ACC_EH_notify_callback, NULL, NULL);
   if (msym)
     {
@@ -812,9 +815,11 @@ initialize_hp_cxx_exception_support (void)
     }
   else
     {
-      warning ("Unable to find exception callback routine (%s).", HP_ACC_EH_notify_callback);
-      warning ("Suggest linking executable with -g (links in /opt/langtools/lib/end.o).");
-      warning ("GDB will be unable to intercept exception events.");
+      warning (_("\
+Unable to find exception callback routine (%s).\n\
+Suggest linking executable with -g (links in /opt/langtools/lib/end.o).\n\
+GDB will be unable to intercept exception events."),
+              HP_ACC_EH_notify_callback);
       eh_notify_callback_addr = 0;
       return 0;
     }
@@ -831,11 +836,11 @@ initialize_hp_cxx_exception_support (void)
   shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, "$SHLIB_INFO$");
   if (shlib_info && (bfd_section_size (symfile_objfile->obfd, shlib_info) != 0))
     {
-      /* The minsym we have has the local code address, but that's not the
-         plabel that can be used by an inter-load-module call. */
-      /* Find solib handle for main image (which has end.o), and use that
-         and the min sym as arguments to __d_shl_get() (which does the equivalent
-         of shl_findsym()) to find the plabel. */
+      /* The minsym we have has the local code address, but that's not
+         the plabel that can be used by an inter-load-module call.  */
+      /* Find solib handle for main image (which has end.o), and use
+         that and the min sym as arguments to __d_shl_get() (which
+         does the equivalent of shl_findsym()) to find the plabel.  */
 
       args_for_find_stub args;
       static char message[] = "Error while finding exception callback hook:\n";
@@ -856,8 +861,9 @@ initialize_hp_cxx_exception_support (void)
        {
          /* We can get here either if there is no plabel in the export list
             for the main image, or if something strange happened (?) */
-         warning ("Couldn't find a plabel (indirect function label) for the exception callback.");
-         warning ("GDB will not be able to intercept exception events.");
+         warning (_("\
+Couldn't find a plabel (indirect function label) for the exception callback.\n\
+GDB will not be able to intercept exception events."));
          return 0;
        }
     }
@@ -875,9 +881,11 @@ initialize_hp_cxx_exception_support (void)
     }
   else
     {
-      warning ("Unable to find exception callback routine to set breakpoint (%s).", HP_ACC_EH_break);
-      warning ("Suggest linking executable with -g (link in /opt/langtools/lib/end.o).");
-      warning ("GDB will be unable to intercept exception events.");
+      warning (_("\
+Unable to find exception callback routine to set breakpoint (%s).\n\
+Suggest linking executable with -g (link in /opt/langtools/lib/end.o).\n\
+GDB will be unable to intercept exception events."),
+              HP_ACC_EH_break);
       eh_break_addr = 0;
       return 0;
     }
@@ -901,9 +909,10 @@ initialize_hp_cxx_exception_support (void)
        }
       else
        {
-         warning ("Unable to enable interception of exception catches.");
-         warning ("Executable may not have been compiled debuggable with HP aCC.");
-         warning ("Suggest linking executable with -g (link in /opt/langtools/lib/end.o).");
+         warning (_("\
+Unable to enable interception of exception catches.\n\
+Executable may not have been compiled debuggable with HP aCC.\n\
+Suggest linking executable with -g (link in /opt/langtools/lib/end.o)."));
          return 0;
        }
     }
@@ -927,9 +936,10 @@ initialize_hp_cxx_exception_support (void)
        }
       else
        {
-         warning ("Unable to enable interception of exception throws.");
-         warning ("Executable may not have been compiled debuggable with HP aCC.");
-         warning ("Suggest linking executable with -g (link in /opt/langtools/lib/end.o).");
+         warning (_("\
+Unable to enable interception of exception throws.\n\
+Executable may not have been compiled debuggable with HP aCC.\n\
+Suggest linking executable with -g (link in /opt/langtools/lib/end.o)."));
          return 0;
        }
     }
@@ -972,13 +982,14 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
       /* there may be other cases in the future */
     }
 
-  /* Set the EH hook to point to the callback routine */
+  /* Set the EH hook to point to the callback routine */
   store_unsigned_integer (buf, 4, enable ? eh_notify_callback_addr : 0);       /* FIXME 32x64 problem */
   /* pai: (temp) FIXME should there be a pack operation first? */
   if (target_write_memory (eh_notify_hook_addr, buf, 4))       /* FIXME 32x64 problem */
     {
-      warning ("Could not write to target memory for exception event callback.");
-      warning ("Interception of exception events may not work.");
+      warning (_("\
+Could not write to target memory for exception event callback.\n\
+Interception of exception events may not work."));
       return (struct symtab_and_line *) -1;
     }
   if (enable)
@@ -991,7 +1002,7 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
        }
       else
        {
-         warning ("Internal error: Invalid inferior pid?  Cannot intercept exception events.");
+         warning (_("Internal error: Invalid inferior pid?  Cannot intercept exception events."));
          return (struct symtab_and_line *) -1;
        }
     }
@@ -1002,7 +1013,7 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
       store_unsigned_integer (buf, 4, enable ? 1 : 0);
       if (target_write_memory (eh_catch_throw_addr, buf, 4))   /* FIXME 32x64? */
        {
-         warning ("Couldn't enable exception throw interception.");
+         warning (_("Couldn't enable exception throw interception."));
          return (struct symtab_and_line *) -1;
        }
       break;
@@ -1010,12 +1021,12 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
       store_unsigned_integer (buf, 4, enable ? 1 : 0);
       if (target_write_memory (eh_catch_catch_addr, buf, 4))   /* FIXME 32x64? */
        {
-         warning ("Couldn't enable exception catch interception.");
+         warning (_("Couldn't enable exception catch interception."));
          return (struct symtab_and_line *) -1;
        }
       break;
     default:
-      error ("Request to enable unknown or unsupported exception event.");
+      error (_("Request to enable unknown or unsupported exception event."));
     }
 
   /* Copy break address into new sal struct, malloc'ing if needed.  */
@@ -1348,7 +1359,7 @@ hppa32_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
   if (!priv)
     priv = hppa_init_objfile_priv_data (obj);
   if (!priv)
-    error ("Internal error creating objfile private data.\n");
+    error (_("Internal error creating objfile private data."));
 
   /* Use the cached value if we have one.  */
   if (priv->dummy_call_sequence_addr != 0)
@@ -1443,7 +1454,7 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
   if (!priv)
     priv = hppa_init_objfile_priv_data (obj);
   if (!priv)
-    error ("Internal error creating objfile private data.\n");
+    error (_("Internal error creating objfile private data."));
 
   /* Use the cached value if we have one.  */
   if (priv->dummy_call_sequence_addr != 0)
@@ -1595,8 +1606,8 @@ hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr)
        }
     }
 
-  warning ("Cannot find suitable address to place dummy breakpoint; nested "
-          "calls may fail.\n");
+  warning (_("Cannot find suitable address to place dummy breakpoint; nested "
+            "calls may fail."));
   return addr - 4;
 }
 
@@ -1699,8 +1710,8 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
          return it can return to the space of our trampoline.  */
       stubaddr = hppa_hpux_find_import_stub_for_addr (funcaddr);
       if (stubaddr == 0)
-        error ("Cannot call external function not referenced by application "
-              "(no import stub).\n");
+        error (_("Cannot call external function not referenced by application "
+              "(no import stub).\n"));
       regcache_cooked_write_unsigned (current_regcache, 22, stubaddr);
 
       write_memory (sp, (char *)&hppa32_tramp, sizeof (hppa32_tramp));
@@ -1710,7 +1721,7 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
 
       *real_pc = hppa32_hpux_search_dummy_call_sequence (gdbarch, pc, &argreg);
       if (*real_pc == 0)
-        error ("Cannot make interspace call from here.\n");
+        error (_("Cannot make interspace call from here."));
 
       regcache_cooked_write_unsigned (current_regcache, argreg, sp);
 
@@ -1736,7 +1747,7 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
 
       *real_pc = hppa64_hpux_search_dummy_call_sequence (gdbarch, pc, &argreg);
       if (*real_pc == 0)
-        error ("Cannot make interspace call from here.\n");
+        error (_("Cannot make interspace call from here."));
 
       regcache_cooked_write_unsigned (current_regcache, argreg, sp);
 
@@ -1862,7 +1873,7 @@ hppa_hpux_supply_save_state (const struct regset *regset,
   /* If the SS_WIDEREGS flag is set, we really do need the full
      `struct save_state'.  */
   if (flags & HPPA_HPUX_SS_WIDEREGS && len < HPPA_HPUX_SAVE_STATE_SIZE)
-    error ("Register set contents too small");
+    error (_("Register set contents too small"));
 
   if (flags & HPPA_HPUX_SS_WIDEREGS)
     hppa_hpux_supply_ss_wide (regcache, regnum, save_state);
This page took 0.030372 seconds and 4 git commands to generate.