* 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.
This commit is contained in:
parent
869fe6ea85
commit
9e0627f141
|
@ -349,8 +349,8 @@ target_signal_from_host (int hostsig)
|
||||||
return (enum target_signal)
|
return (enum target_signal)
|
||||||
(hostsig - 64 + (int) TARGET_SIGNAL_REALTIME_64);
|
(hostsig - 64 + (int) TARGET_SIGNAL_REALTIME_64);
|
||||||
else
|
else
|
||||||
error ("GDB bug: target.c (target_signal_from_host): "
|
error (_("GDB bug: target.c (target_signal_from_host): "
|
||||||
"unrecognized real-time signal");
|
"unrecognized real-time signal"));
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
/* The user might be trying to do "signal SIGSAK" where this system
|
||||||
doesn't have SIGSAK. */
|
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));
|
target_signal_to_name (oursig));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -667,8 +667,8 @@ target_signal_from_command (int num)
|
||||||
{
|
{
|
||||||
if (num >= 1 && num <= 15)
|
if (num >= 1 && num <= 15)
|
||||||
return (enum target_signal) num;
|
return (enum target_signal) num;
|
||||||
error ("Only signals 1-15 are valid as numeric signals.\n\
|
error (_("Only signals 1-15 are valid as numeric signals.\n\
|
||||||
Use \"info signals\" for a list of symbolic signals.");
|
Use \"info signals\" for a list of symbolic signals."));
|
||||||
}
|
}
|
||||||
|
|
||||||
extern initialize_file_ftype _initialize_signals; /* -Wmissing-prototype */
|
extern initialize_file_ftype _initialize_signals; /* -Wmissing-prototype */
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
|
* gdbserver/server.h (Macro _): Define it if not available.
|
||||||
|
|
||||||
2011-03-14 Michael Snyder <msnyder@vmware.com>
|
2011-03-14 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
* hostio.c (handle_close): Remove unnecessary null test.
|
* hostio.c (handle_close): Remove unnecessary null test.
|
||||||
|
|
|
@ -96,6 +96,12 @@ int vsnprintf(char *str, size_t size, const char *format, va_list ap);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define underscore macro, if not available, to be able to use it inside
|
||||||
|
code shared with gdb in common directory. */
|
||||||
|
#ifndef _
|
||||||
|
#define _(String) (String)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* A type used for binary buffers. */
|
/* A type used for binary buffers. */
|
||||||
typedef unsigned char gdb_byte;
|
typedef unsigned char gdb_byte;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue