Avoid shadowing in gdbserver
authorTom Tromey <tom@tromey.com>
Sun, 22 Apr 2018 16:50:27 +0000 (10:50 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 5 Oct 2018 04:51:46 +0000 (22:51 -0600)
commitda4ae14a4d1614015f6e8d4a37df1b882806630a
treeeb3dd1793d968b1cbbfd89649eb84e749dab9ec3
parentb926417afaea99ed17663e06d6654d0048536017
Avoid shadowing in gdbserver

This fixes a few instances of shadowing in gdbserver.  These are all
simple fixes.

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

* server.c (handle_status): Rename inner "thread".
(process_serial_event): Declare "res" in 'm' case.
* linux-low.c (last_thread_of_process_p, find_lwp_pid)
(iterate_over_lwps): Rename inner "thread".
(linux_qxfer_libraries_svr4): Rename inner "len".
* gdbthread.h (find_thread_in_random): Rename inner "thread".
gdb/gdbserver/ChangeLog
gdb/gdbserver/gdbthread.h
gdb/gdbserver/linux-low.c
gdb/gdbserver/server.c