From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16003 invoked by alias); 15 Apr 2014 15:48:03 -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 15990 invoked by uid 89); 15 Apr 2014 15:48:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,LIKELY_SPAM_BODY,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no 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 15:48:01 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3FFm09d019534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 15 Apr 2014 11:48:00 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3FFlxEN017127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 15 Apr 2014 11:48:00 -0400 Message-ID: <534D54AF.3010501@redhat.com> Date: Tue, 15 Apr 2014 15:48: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 from mi-break.exp Content-Type: multipart/mixed; boundary="------------070408020603090107080300" X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00295.txt.bz2 This is a multi-part message in MIME format. --------------070408020603090107080300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 552 Hi, In a recent email, I asked a contributor to help cleanup some ridiculously long expect regexps. Eating my own dog food, I am going to be submitting some new MI functions which will facilitate regexp construction for breakpoints. This patch simply removes a bunch of unused globals from mi-break.exp. Keith 2014-04-15 Keith Seitz * gdb.mi/mi-break.exp (test_tbreak_creation_and_listing): Remove unused globals. (test_rbreak_creation_and_listing): Likewise. (test_ignore_count): Likewise. (test_error): Likewise. --------------070408020603090107080300 Content-Type: text/x-patch; name="mi-break.exp-remove-unused-globals.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mi-break.exp-remove-unused-globals.patch" Content-length: 2177 diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp index a9064fd..04dd932 100644 --- a/gdb/testsuite/gdb.mi/mi-break.exp +++ b/gdb/testsuite/gdb.mi/mi-break.exp @@ -56,14 +56,12 @@ set line_callme_body [expr $line_callme_head + 2] set fullname "fullname=\"${fullname_syntax}${srcfile}\"" proc test_tbreak_creation_and_listing {} { - global mi_gdb_prompt global srcfile global hex - global line_callee4_head line_callee4_body - global line_callee3_head line_callee3_body - global line_callee2_head line_callee2_body - global line_callee1_head line_callee1_body - global line_main_head line_main_body + global line_callee4_head + global line_callee3_head + global line_callee2_body + global line_main_body global fullname # Insert some breakpoints and list them @@ -98,14 +96,12 @@ proc test_tbreak_creation_and_listing {} { } proc test_rbreak_creation_and_listing {} { - global mi_gdb_prompt - global srcfile global hex - global line_callee4_head line_callee4_body - global line_callee3_head line_callee3_body - global line_callee2_head line_callee2_body - global line_callee1_head line_callee1_body - global line_main_head line_main_body + global line_callee4_body + global line_callee3_body + global line_callee2_body + global line_callee1_body + global line_main_body # Insert some breakpoints and list them # Also, disable some so they do not interfere with other tests @@ -165,7 +161,6 @@ proc test_abreak_creation {} { } proc test_ignore_count {} { - global mi_gdb_prompt global line_callme_body mi_gdb_test "-break-insert -i 1 callme" \ @@ -179,8 +174,6 @@ proc test_ignore_count {} { } proc test_error {} { - global mi_gdb_prompt - mi_gdb_test "-break-insert function_that_does_not_exist" \ ".*\\^error,msg=\"Function \\\\\"function_that_does_not_exist\\\\\" not defined.\"" \ "breakpoint at nonexistent function" @@ -211,7 +204,6 @@ proc test_error {} { } proc test_disabled_creation {} { - global mi_gdb_prompt global hex global line_callee2_body --------------070408020603090107080300--