From patchwork Tue Apr 15 18:53:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Seitz X-Patchwork-Id: 569 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id D0DFD360075 for ; Tue, 15 Apr 2014 11:53:07 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14314964) id 79C111382733; Tue, 15 Apr 2014 11:53:07 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx21.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id 54384136F783 for ; Tue, 15 Apr 2014 11:53:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type; q=dns; s=default; b=mq1NImzFJZ8HnDSz/DNwcUeAb6QkZ HGnXImDhAWu5aZ8UqZVWd0ME6lVvDk1WKQ7zdyC4UqNkUNcwlg4bO/fcNj5ZZUji RDTrabylUQLHOySdAyr86irUC9HsfxQFQsxe3sSG1fAwnplUOTzLYLy7J0lgHT8i 1trHBgvzY5B8Gk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type; s=default; bh=dUcprZmNyC7sboZcGbQ/JTyk9CU=; b=fNf M3Y2XhBZJS66Q/Fa6mwbOghFa3U8gxLak1FvUS9QGydqusdarXleAUZvmvdBNYqL wqRn0+ufiapxL1AArq9GV0WTYLo9nA66xMEgUG5ag1/yBmXh21o3sY9mghihmi+0 Aes1PHatKdHOEB9zK9//qACq2YCfzVjHp8aaGuNY= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@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 11:53:01 -0700 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 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in 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. 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