X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcli%2Fcli-script.c;h=5fc01b3950538643b23fe317f9e141877395e232;hb=cb814510676f7f6c08b329af2f57006fa598b619;hp=624a493ddae762297793ebe94346ce3b8d5f2c00;hpb=224c3ddb89a43bf8db06c373d4ff429477833c0f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 624a493dda..5fc01b3950 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -1,6 +1,6 @@ /* GDB CLI command scripting. - Copyright (C) 1986-2015 Free Software Foundation, Inc. + Copyright (C) 1986-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -307,7 +307,7 @@ print_command_lines (struct ui_out *uiout, struct command_line *cmd, static void clear_hook_in_cleanup (void *data) { - struct cmd_list_element *c = data; + struct cmd_list_element *c = (struct cmd_list_element *) data; c->hook_in = 0; /* Allow hook to work again once it is complete. */ } @@ -341,7 +341,7 @@ execute_cmd_post_hook (struct cmd_list_element *c) static void do_restore_user_call_depth (void * call_depth) { - int *depth = call_depth; + int *depth = (int *) call_depth; (*depth)--; if ((*depth) == 0) @@ -379,8 +379,8 @@ execute_user_command (struct cmd_list_element *c, char *args) not confused with Insight. */ in_user_command = 1; - make_cleanup_restore_integer (&interpreter_async); - interpreter_async = 0; + make_cleanup_restore_integer (¤t_ui->async); + current_ui->async = 0; command_nest_depth++; while (cmdlines) @@ -661,8 +661,8 @@ while_command (char *arg, int from_tty) if (command == NULL) return; - old_chain = make_cleanup_restore_integer (&interpreter_async); - interpreter_async = 0; + old_chain = make_cleanup_restore_integer (¤t_ui->async); + current_ui->async = 0; execute_control_command_untraced (command); free_command_lines (&command); @@ -685,8 +685,8 @@ if_command (char *arg, int from_tty) if (command == NULL) return; - old_chain = make_cleanup_restore_integer (&interpreter_async); - interpreter_async = 0; + old_chain = make_cleanup_restore_integer (¤t_ui->async); + current_ui->async = 0; execute_control_command_untraced (command); free_command_lines (&command); @@ -924,9 +924,9 @@ realloc_body_list (struct command_line *command, int new_length) command->body_count = new_length; } -/* Read next line from stdout. Passed to read_command_line_1 and +/* Read next line from stdin. Passed to read_command_line_1 and recurse_read_control_structure whenever we need to read commands - from stdout. */ + from stdin. */ static char * read_next_line (void) @@ -1390,7 +1390,7 @@ free_command_lines (struct command_line **lptr) static void do_free_command_lines_cleanup (void *arg) { - free_command_lines (arg); + free_command_lines ((struct command_line **) arg); } struct cleanup * @@ -1688,8 +1688,8 @@ script_from_file (FILE *stream, const char *file) source_line_number = 0; source_file_name = file; - make_cleanup_restore_integer (&interpreter_async); - interpreter_async = 0; + make_cleanup_restore_integer (¤t_ui->async); + current_ui->async = 0; {