Simplify saved_command_line handling
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 881d23104d462e4eac77ae6bcb69cbfe695a2a34..bc2e99efea970af4f5ba0c83cedb0a8eda1166c8 100644 (file)
@@ -1,3 +1,15 @@
+2016-03-09  Pedro Alves  <palves@redhat.com>
+
+       * event-top.c (command_line_handler): Use xfree + xstrdup instead
+       of xrealloc + strcpy.
+       * main.c (captured_main): Use xstrdup instead of xmalloc plus
+       manual clear.
+       * top.c (saved_command_line): Rewrite comment.
+       (saved_command_line_size): Delete.
+       (command_line_input): Use xfree + xstrdup instead of xrealloc +
+       strcpy.
+       * top.h (saved_command_line_size): Delete declaration.
+
 2016-03-09  Pedro Alves  <palves@redhat.com>
 
        * event-top.c: Include buffer.h.
This page took 0.024238 seconds and 4 git commands to generate.