aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2011-03-18 13:03:31 +0000
committerPierre Muller <muller@sourceware.org>2011-03-18 13:03:31 +0000
commit9e0627f141ce528d1cbc20c01e6adbc3353f7a0a (patch)
tree31a898667c7383d307002029fe57a069403fc136 /gdb/common
parent869fe6ea8574b6af5e365170b2416cee0dfbfbfe (diff)
downloadgdb-9e0627f141ce528d1cbc20c01e6adbc3353f7a0a.zip
gdb-9e0627f141ce528d1cbc20c01e6adbc3353f7a0a.tar.gz
gdb-9e0627f141ce528d1cbc20c01e6adbc3353f7a0a.tar.bz2
* common/signals.c (target_signal_from_host): Add _ markup to error
function call message. (target_signal_to_host): Add _ markup and remove trailing new line from warning call message. (target_signal_from_command): Add _ markup to error function call message. * gdbserver/server.h (Macro _): Define it if not available.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/signals.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/common/signals.c b/gdb/common/signals.c
index 3c7ffe4..55f7084 100644
--- a/gdb/common/signals.c
+++ b/gdb/common/signals.c
@@ -349,8 +349,8 @@ target_signal_from_host (int hostsig)
return (enum target_signal)
(hostsig - 64 + (int) TARGET_SIGNAL_REALTIME_64);
else
- error ("GDB bug: target.c (target_signal_from_host): "
- "unrecognized real-time signal");
+ error (_("GDB bug: target.c (target_signal_from_host): "
+ "unrecognized real-time signal"));
}
#endif
@@ -644,7 +644,7 @@ target_signal_to_host (enum target_signal oursig)
{
/* The user might be trying to do "signal SIGSAK" where this system
doesn't have SIGSAK. */
- warning ("Signal %s does not exist on this system.\n",
+ warning (_("Signal %s does not exist on this system."),
target_signal_to_name (oursig));
return 0;
}
@@ -667,8 +667,8 @@ target_signal_from_command (int num)
{
if (num >= 1 && num <= 15)
return (enum target_signal) num;
- error ("Only signals 1-15 are valid as numeric signals.\n\
-Use \"info signals\" for a list of symbolic signals.");
+ error (_("Only signals 1-15 are valid as numeric signals.\n\
+Use \"info signals\" for a list of symbolic signals."));
}
extern initialize_file_ftype _initialize_signals; /* -Wmissing-prototype */