Add missing i18n support to some warning strings.
Result of:
...
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
| egrep -v /testsuite/ \
| xargs sed -i \
's/\([ \t]\)warning (\("[^"]*"\));/\1warning (_(\2));/'
...
Approved-By: Tom Tromey <tom@tromey.com>
an included file XCOFF info is useless. */
if (ei.mdebugsect)
- warning ("mdebug debug information is not supported.");
+ warning (_("mdebug debug information is not supported."));
if (ei.stabsect)
- warning ("stabs debug information is not supported.");
+ warning (_("stabs debug information is not supported."));
/* Read the CTF section only if there is no DWARF info. */
if (always_read_ctf && ei.ctfsect)
va_list ap;
va_start (ap, fmt);
- warning ("Could not trace the inferior process.");
+ warning (_("Could not trace the inferior process."));
vwarning (fmt, ap);
va_end (ap);
if (fast_tp_collecting == fast_tpoint_collect_result::not_collecting)
{
if (step == 0)
- warning ("BAD - reinserting but not stepping.");
+ warning (_("BAD - reinserting but not stepping."));
if (lwp->suspended)
warning ("BAD - reinserting and suspended(%d).",
lwp->suspended);
{
gdb_sigmask (SIG_UNBLOCK, &mask, NULL);
- warning ("creating event pipe failed.");
+ warning (_("creating event pipe failed."));
return previous;
}
}
}
- warning ("Could not find fast tracepoint jump in list.");
+ warning (_("Could not find fast tracepoint jump in list."));
return ENOENT;
}
}
}
- warning ("Could not find raw breakpoint in list.");
+ warning (_("Could not find raw breakpoint in list."));
return ENOENT;
}
}
}
- warning ("Could not find breakpoint in list.");
+ warning (_("Could not find breakpoint in list."));
return ENOENT;
}
if (cond == NULL)
{
- warning ("Condition evaluation failed. Assuming unconditional.");
+ warning (_("Condition evaluation failed. Assuming unconditional."));
return 0;
}
if (cmd == NULL)
{
- warning ("Command evaluation failed. Disabling.");
+ warning (_("Command evaluation failed. Disabling."));
return 0;
}
{
if (!raw->inserted)
{
- warning ("Hit a removed breakpoint?");
+ warning (_("Hit a removed breakpoint?"));
return;
}
switch_to_thread (parent_thr);
if (!find_one_thread (child_ptid))
- warning ("Cannot find thread after clone.");
+ warning (_("Cannot find thread after clone."));
}
tpoint = fast_tracepoint_from_jump_pad_address (stop_pc);
if (tpoint == NULL)
{
- warning ("in jump pad, but no matching tpoint?");
+ warning (_("in jump pad, but no matching tpoint?"));
return fast_tpoint_collect_result::not_collecting;
}
else
tpoint = fast_tracepoint_from_trampoline_address (stop_pc);
if (tpoint == NULL)
{
- warning ("in trampoline, but no matching tpoint?");
+ warning (_("in trampoline, but no matching tpoint?"));
return fast_tpoint_collect_result::not_collecting;
}
else
if (listen_fd == -1)
{
- warning ("could not create sync socket");
+ warning (_("could not create sync socket"));
break;
}