diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/reverse.c | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b44790a1042..6678d71b9ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +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, inflow.c, infrun.c, linux-record.c, diff --git a/gdb/reverse.c b/gdb/reverse.c index 4c50ef153db..ac89fbe635a 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -1,6 +1,6 @@ /* Reverse execution and reverse debugging. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of GDB. @@ -28,7 +28,7 @@ /* User interface for reverse debugging: Set exec-direction / show exec-direction commands - (returns error unles target implements to_set_exec_direction method). */ + (returns error unless target implements to_set_exec_direction method). */ static const char exec_forward[] = "forward"; static const char exec_reverse[] = "reverse"; @@ -89,6 +89,11 @@ static void exec_direction_default (void *notused) 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) { @@ -153,10 +158,10 @@ void _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); |