Add previous_saved_command_line to allow a command to repeat a previous command.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index eec246de41eabac6b66187f78fc6a64ff7c3e86c..eb2d0f41ce4d11da89f9d5f1ab6bbde018921440 100644 (file)
@@ -1,3 +1,23 @@
+2019-05-31  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * top.h (saved_command_line): Remove declaration.
+       * top.c (previous_saved_command_line, previous_repeat_arguments):
+       New variables.
+       (saved_command_line): Make static, define together with other
+       'repeat variables'.
+       (dont_repeat): Clear repeat_arguments.
+       (repeat_previous, get_saved_command_line, save_command_line):
+       New functions.
+       (gdb_init): Initialize saved_command_line
+       and previous_saved_command_line.
+       * main.c (captured_main_1): Remove saved_command_line initialization.
+       * event-top.c (handle_line_of_input): Update to use
+       the new 'repeat' related functions instead of direct access to
+       saved_command_line.
+       * command.h (repeat_previous, get_saved_command_line,
+       save_command_line): New declarations.
+       (dont_repeat): Add comment.
+
 2019-05-30  Tom Tromey  <tromey@adacore.com>
 
        * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
This page took 0.024491 seconds and 4 git commands to generate.