+2008-10-07 Michael Snyder <msnyder@vmware.com>
+
+ * reverse.c: Update copyright.
+ (exec_reverse_once): Add function header comment.
+ (_initialize_reverse): Use i18n macros for set exec-direction.
+
2008-10-07 Hui Zhu <teawater@gmail.com>
* i386-tdep.c, infrun.c, linux-record.c, linux-record.h,
/* User interface for reverse debugging:
Set exec-direction / show exec-direction commands (returns error
- unles target implements to_set_exec_direction method). */
+ unless target implements to_set_exec_direction method). */
static const char exec_forward[] = "forward";
static const char exec_reverse[] = "reverse";
target_set_execution_direction (EXEC_FORWARD);
}
+/* exec_reverse_once -- accepts an arbitrary gdb command (string),
+ and executes it with exec-direction set to 'reverse'.
+
+ Used to implement reverse-next etc. commands. */
+
static void
exec_reverse_once (char *cmd, char *args, int from_tty)
{
_initialize_reverse (void)
{
add_setshow_enum_cmd ("exec-direction", class_run, exec_direction_names,
- &exec_direction, "Set direction of execution.\n\
-Options are 'forward' or 'reverse'.",
- "Show direction of execution (forward/reverse).",
- "Tells gdb whether to execute forward or backward.",
+ &exec_direction, _("Set direction of execution.\n\
+Options are 'forward' or 'reverse'."),
+ _("Show direction of execution (forward/reverse)."),
+ _("Tells gdb whether to execute forward or backward."),
set_exec_direction_func, show_exec_direction_func,
&setlist, &showlist);