Remove unused global variable declarations.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-02-27 Tom de Vries <tdevries@suse.de>
* config/sid.exp: Remove unused globals.
* gdb.base/attach.exp: Same.
* gdb.base/catch-load.exp: Same.
* gdb.base/dbx.exp: Same.
* lib/gdb.exp: Same.
* lib/mi-support.exp: Same.
* lib/prompt.exp: Same.
+2020-02-27 Tom de Vries <tdevries@suse.de>
+
+ * config/sid.exp: Remove unused globals.
+ * gdb.base/attach.exp: Same.
+ * gdb.base/catch-load.exp: Same.
+ * gdb.base/dbx.exp: Same.
+ * lib/gdb.exp: Same.
+ * lib/mi-support.exp: Same.
+ * lib/prompt.exp: Same.
+
2020-02-27 Tom de Vries <tdevries@suse.de>
* lib/tuiterm.exp (spawn): Handle case that spawn_out(slave,name) is
# along with this program. If not, see <http://www.gnu.org/licenses/>.
proc sid_start {} {
- global verbose
-
set port [lindex [split [target_info netport] ":"] 1]
# Set a default endianness
global binfile
global escapedbinfile
global srcfile
- global testfile
- global subdir
- global timeout
- global decimal
clean_restart $binfile
global binfile
global escapedbinfile
global srcfile
- global testfile
- global subdir
global timeout
global decimal
proc_with_prefix do_command_attach_tests {} {
global gdb_prompt
global binfile
- global verbose
- global GDB
- global INTERNAL_GDBFLAGS
- global GDBFLAGS
if ![isnative] then {
unsupported "command attach test"
# MATCH is a boolean saying whether we expect the catchpoint to be hit.
proc one_catch_load_test {scenario kind match sostop} {
with_test_prefix "${scenario}" {
- global verbose testfile testfile2 binfile2 binfile2_dlopen
- global srcfile
+ global testfile testfile2 binfile2 binfile2_dlopen
global decimal gdb_prompt
clean_restart $testfile
# start gdb -- start gdb running, default procedure
#
proc dbx_gdb_start { } {
- global verbose
global GDB
global INTERNAL_GDBFLAGS GDBFLAGS
global prompt
set old_gdb_file_cmd_body [info body gdb_file_cmd]
proc gdb_file_cmd {arg} {
- global verbose
global loadpath
global loadfile
global GDB
#
proc gdb_unload {} {
- global verbose
global GDB
global gdb_prompt
send_gdb "file\n"
proc default_gdb_exit {} {
global GDB
global INTERNAL_GDBFLAGS GDBFLAGS
- global verbose
global gdb_spawn_id inferior_spawn_id
global inotify_log_file
proc gdb_file_cmd { arg } {
global gdb_prompt
- global verbose
global GDB
global last_loaded_file
proc get_debug_format { } {
global gdb_prompt
- global verbose
global expect_out
global debug_format
proc mi_uncatched_gdb_exit {} {
global GDB
global INTERNAL_GDBFLAGS GDBFLAGS
- global verbose
global gdb_spawn_id gdb_main_spawn_id
global mi_spawn_id inferior_spawn_id
global gdb_prompt
# get really slow. Give gdb at least 3 minutes to start up.
#
proc default_mi_gdb_start { args } {
- global verbose use_gdb_stub
+ global use_gdb_stub
global GDB
global INTERNAL_GDBFLAGS GDBFLAGS
global gdb_prompt
# return a -1 if anything goes wrong.
#
proc mi_gdb_file_cmd { arg } {
- global verbose
global loadpath
global loadfile
global GDB
# return a -1 if anything goes wrong.
#
proc mi_gdb_target_load { } {
- global verbose
global loadpath
global loadfile
global GDB
# uses pass if it sees $gdb_prompt, and fail if it sees $gdb_prompt_fail.
#
proc default_prompt_gdb_start { } {
- global verbose
global GDB
global INTERNAL_GDBFLAGS GDBFLAGS
global gdb_prompt