]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2008-10-07 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 7 Oct 2008 18:24:16 +0000 (18:24 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 7 Oct 2008 18:24:16 +0000 (18:24 +0000)
* reverse.c: Update copyright.
(exec_reverse_once): Add function header comment.
(_initialize_reverse): Use i18n macros for set exec-direction.

gdb/ChangeLog
gdb/reverse.c

index b44790a10428014b81981450f609417b3b53a058..6678d71b9ee28d4d73b703a37aa98af222f4f438 100644 (file)
@@ -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,
index 4c50ef153db75d8bb4c532acffdb6dc1c287cd3e..ac89fbe635a3626c85e99c6e1e1b41358c6f01a8 100644 (file)
@@ -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);