From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32197 invoked by alias); 15 Apr 2014 18:53:05 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32183 invoked by uid 89); 15 Apr 2014 18:53:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Apr 2014 18:53:03 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3FIr2s0031681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 15 Apr 2014 14:53:02 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3FIr1xh029697 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 15 Apr 2014 14:53:01 -0400 Message-ID: <534D800D.10800@redhat.com> Date: Tue, 15 Apr 2014 18:53:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org ml" Subject: [RFA/testsuite] Remove unused globals in mi-simplerun.exp Content-Type: multipart/mixed; boundary="------------020409080901040409020808" X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00301.txt.bz2 This is a multi-part message in MIME format. --------------020409080901040409020808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 412 Hi, I noticed this little cleanup while preparing my big[ger] test suite cleanup. Keith testsuite/ChangeLog 2014-04-15 Keith Seitz * gdb.mi/mi-simplerun.exp (test_breakpoints_creation_and_listing): Remove unused globals. (test_running_the_program): Likewise. (test_controlled_execution): Likewise. (test_controlling_breakpoints): Likewise. (test_program_termination): Likewise. --------------020409080901040409020808 Content-Type: text/x-patch; name="mi-simplerun.exp-cleanups.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mi-simplerun.exp-cleanups.patch" Content-length: 1329 diff --git a/gdb/testsuite/gdb.mi/mi-simplerun.exp b/gdb/testsuite/gdb.mi/mi-simplerun.exp index 7d4c49b..7d5baa6 100644 --- a/gdb/testsuite/gdb.mi/mi-simplerun.exp +++ b/gdb/testsuite/gdb.mi/mi-simplerun.exp @@ -45,7 +45,6 @@ mi_gdb_reinitialize_dir $srcdir/$subdir mi_gdb_load ${binfile} proc test_breakpoints_creation_and_listing {} { - global mi_gdb_prompt global srcfile global hex @@ -92,9 +91,6 @@ proc test_breakpoints_creation_and_listing {} { } proc test_running_the_program {} { - global mi_gdb_prompt - global hex - set line_main_head [gdb_get_line_number "main ("] set line_main_body [expr $line_main_head + 2] @@ -112,7 +108,6 @@ proc test_running_the_program {} { } proc test_controlled_execution {} { - global mi_gdb_prompt global hex set line_callee4_head [gdb_get_line_number "callee4 ("] @@ -156,8 +151,6 @@ proc test_controlled_execution {} { } proc test_controlling_breakpoints {} { - global mi_gdb_prompt - # Enable, delete, set ignore counts in breakpoints # (disable was already tested above) # Tests: @@ -169,8 +162,6 @@ proc test_controlling_breakpoints {} { } proc test_program_termination {} { - global mi_gdb_prompt - # Run to completion: normal and forced # Tests: # -exec-abort --------------020409080901040409020808--