binutils-gdb/gdb/mi
Tom Tromey b926417afa Simple -Wshadow=local fixes
This fixes all the straightforward -Wshadow=local warnings in gdb.  A
few standard approaches are used here:

* Renaming an inner (or outer, but more commonly inner) variable;
* Lowering a declaration to avoid a clash;
* Moving a declaration into a more inner scope to avoid a clash,
  including the special case of moving a declaration into a loop header.

I did not consider any of the changes in this patch to be particularly
noteworthy, though of course they should all still be examined.

gdb/ChangeLog
2018-10-04  Tom Tromey  <tom@tromey.com>

	* ctf.c (SET_ARRAY_FIELD): Rename "u32".
	* p-valprint.c (pascal_val_print): Split inner "i" variable.
	* xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
	header.
	* xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
	more inner scope.
	* xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
	* varobj.c (varobj_update): Rename inner "newobj",
	"type_changed".
	* valprint.c (generic_emit_char): Rename inner "buf".
	* valops.c (find_overload_match): Rename inner "temp".
	(value_struct_elt_for_reference): Declare "v" in more inner
	scope.
	* v850-tdep.c (v850_push_dummy_call): Rename "len".
	* unittests/array-view-selftests.c (run_tests): Rename inner
	"vec".
	* tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
	header.
	* tracepoint.c (merge_uploaded_trace_state_variables): Declare
	"tsv" in more inner scope.
	(print_one_static_tracepoint_marker): Rename inner
	"tuple_emitter".
	* tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
	(tic6x_push_dummy_call): Don't redeclare "addr".
	* target-float.c: Declare "dto" lower.
	* symtab.c (lookup_local_symbol): Rename inner "sym".
	(find_pc_sect_line): Rename inner "pc".
	* stack.c (print_frame): Don't redeclare "gdbarch".
	(return_command): Rename inner "gdbarch".
	* s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
	"sp".
	* rust-lang.c (rust_internal_print_type): Declare "i" in loop
	header.
	* rs6000-tdep.c (ppc_process_record): Rename inner "addr".
	* riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
	scope.
	* remote.c (remote_target::update_thread_list): Don't redeclare
	"tp".
	(remote_target::process_initial_stop_replies): Rename inner
	"thread".
	(remote_target::remote_parse_stop_reply): Don't redeclare "p".
	(remote_target::wait_as): Don't redeclare "stop_reply".
	(remote_target::get_thread_local_address): Rename inner
	"result".
	(remote_target::get_tib_address): Likewise.
2018-10-04 22:51:45 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c Use function_view in cli-script.c 2018-05-04 15:58:08 -06:00
mi-cmd-break.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-catch.c Change ada_catchpoint::excep_string to be a std::string 2018-05-21 10:01:15 -06:00
mi-cmd-disas.c MI: Add -a option to the "-data-disassemble" command 2018-08-14 14:13:28 +01:00
mi-cmd-env.c Move some declarations to source.h 2018-02-14 08:09:52 -07:00
mi-cmd-file.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-info.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-stack.c gdb: Change how frames are selected for 'frame' and 'info frame'. 2018-09-28 11:59:34 +01:00
mi-cmd-target.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-cmd-var.c Simple -Wshadow=local fixes 2018-10-04 22:51:45 -06:00
mi-cmds.c (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-cmds.h (Ada) Add gdb-mi support for stopping at start of exception handler. 2018-01-31 13:42:30 +01:00
mi-common.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-common.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-console.c Implement write_async_safe for mi_console_file (PR 22299) 2018-04-07 13:48:06 -04:00
mi-console.h Implement write_async_safe for mi_console_file (PR 22299) 2018-04-07 13:48:06 -04:00
mi-getopt.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-getopt.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-interp.c Remove ptid_equal 2018-07-03 11:36:46 -06:00
mi-interp.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-main.c Simple -Wshadow=local fixes 2018-10-04 22:51:45 -06:00
mi-main.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-out.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-out.h Make do_is_mi_like_p const. 2018-04-30 12:59:03 -06:00
mi-parse.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-parse.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-symbol-cmds.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00