This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] testsuite: Remove unused global references in gdb_test
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Mon, 18 Jan 2016 11:13:52 -0500
- Subject: [PATCH] testsuite: Remove unused global references in gdb_test
- Authentication-results: sourceware.org; auth=none
Those are unused since gdb_test_multiple was added, factoring out most
of the content of gdb_test.
If it was C code, I would push it as obvious, but because TCL is always
full of surprises, I am playing it safe.
gdb/testsuite/ChangeLog:
* lib/gdb.exp (gdb_test): Remove unused global references.
---
gdb/testsuite/lib/gdb.exp | 3 ---
1 file changed, 3 deletions(-)
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 52220d0..f3f53b7 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -976,10 +976,7 @@ proc gdb_test_multiple { command message user_code } {
# -1 if there was an internal error.
#
proc gdb_test { args } {
- global verbose
global gdb_prompt
- global GDB
- upvar timeout timeout
if [llength $args]>2 then {
set message [lindex $args 2]
--
2.5.1