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
{
/* 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;
}
{
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 */
+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>
* hostio.c (handle_close): Remove unnecessary null test.
#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. */
typedef unsigned char gdb_byte;