aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-06-13 10:55:27 +0000
committerPedro Alves <palves@redhat.com>2011-06-13 10:55:27 +0000
commitdc7eb48e0a75ef7430880a5892035b638bb422c7 (patch)
tree1981359c722003149509b703de2fcf58f943dece /gdb/main.c
parent94342ec38bc47cba884a975e37c74f20b598ca25 (diff)
downloadgdb-dc7eb48e0a75ef7430880a5892035b638bb422c7.zip
gdb-dc7eb48e0a75ef7430880a5892035b638bb422c7.tar.gz
gdb-dc7eb48e0a75ef7430880a5892035b638bb422c7.tar.bz2
2011-06-13 Pedro Alves <pedro@codesourcery.com>
gdb/ * top.h (line): Rename to ... (saved_command_line): ... this. (linesize): Rename to ... (saved_command_line_size): ... this. * top.c (line): Rename to ... (saved_command_line): ... this. (linesize): Rename to ... (saved_command_line_size): ... this. (dont_repeat, command_line_input, dont_repeat_command): Adjust. * event-top.c (command_line_handler): Adjust. * main.c (captured_main): Adjust.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 73ce4c8..187c690 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -319,8 +319,8 @@ captured_main (void *data)
ndir = 0;
quit_flag = 0;
- line = (char *) xmalloc (linesize);
- line[0] = '\0'; /* Terminate saved (now empty) cmd line. */
+ saved_command_line = (char *) xmalloc (saved_command_line_size);
+ saved_command_line[0] = '\0';
instream = stdin;
gdb_stdout = stdio_fileopen (stdout);