From c31a71f44f3e8c56d1bce34c31b5da867a726477 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 5 May 2010 22:27:15 +0000 Subject: [PATCH] 2010-05-05 Michael Snyder * remote.c (remote_threads_info): Revert questionable part of the previous change. --- gdb/ChangeLog | 36 ++++++++++++++++++++++++++++++++---- gdb/remote.c | 2 +- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03cb37492f1..ea32dd330fe 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,12 +1,40 @@ 2010-05-05 Michael Snyder - * cli-dump.c (dump_memory_to_file): Delete unused variable. + * remote.c (remote_threads_info): Revert questionable part of + the previous change. + +2010-05-05 Michael Snyder + + * mi/mi-out.c (mi_table_begin): Delete unused variable. + * mi/mi-cmd-var.c (print_varobj): Delete unused variable. + (mi_cmd_var_list_children): Delete unused variable. + (varobj_update_one): Delete unused variable. + * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. + * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): + Delete unused variable. + (mi_cmd_stack_list_variables): Delete unused variable. + (list_args_or_locals): Delete unused variable. + * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): + Delete unused variables. + (mi_cmd_file_list_exec_source_files): Delete unused variable. + * mi/mi-cmd-target.c (mi_cmd_target_file_delete): + Delete unused variable. + * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. + (mi_cmd_interpreter_exec): Delete unused variable. + (mi_on_normal_stop): Delete unused variable. + * mi/mi-main.c (run_one_inferior): Delete unused variable. + (print_one_inferior): Delete unused variables. + (mi_execute_command): Delete unused variable. + (mi_cmd_execute): Delete unused variable. + (timestamp): Delete unused variable. + + * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. (restore_binary_file): Delete unused variable. - * cli-decode.c (deprecated_cmd_warning): Delete unused variables. - * cli-script.c (define_command): Delete unused variables. + * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. + * cli/cli-script.c (define_command): Delete unused variables. (recurse_read_control_structure): Delete unused variable. (script_from_file): Delete unused variable. - * cli-cmds.c (complete_command): Delete unused variable. + * cli/cli-cmds.c (complete_command): Delete unused variable. (disassemble_command): Delete unused variable. * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. diff --git a/gdb/remote.c b/gdb/remote.c index 051443d49c7..6208450a8dc 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2512,8 +2512,8 @@ remote_threads_info (struct target_ops *ops) { struct gdb_xml_parser *parser; struct threads_parsing_context context; + struct cleanup back_to = make_cleanup (null_cleanup, NULL); - make_cleanup (null_cleanup, NULL); context.items = 0; parser = gdb_xml_create_parser_and_cleanup (_("threads"), threads_elements, -- 2.30.2