From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29661 invoked by alias); 12 Apr 2010 10:14:19 -0000 Received: (qmail 29652 invoked by uid 22791); 12 Apr 2010 10:14:18 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Apr 2010 10:14:13 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3CAECKs029225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 12 Apr 2010 06:14:12 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3CAEBY0029735 for ; Mon, 12 Apr 2010 06:14:11 -0400 Message-ID: <4BC2F272.70707@redhat.com> Date: Mon, 12 Apr 2010 10:14:00 -0000 From: Phil Muldoon User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.3 MIME-Version: 1.0 To: gdb-patches ml Subject: Re: [python][obv] Make result in testsuite/gdb.python/py-breakpoints.c global References: <4BC2EEBE.8090404@redhat.com> In-Reply-To: <4BC2EEBE.8090404@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2010-04/txt/msg00341.txt.bz2 On 04/12/2010 10:58 AM, Phil Muldoon wrote: > > 2010-04-12 Phil Muldoon > > * gdb.python/py-breakpoint.c: Make result global. > This time with a proper patch attached! -- Index: testsuite/gdb.python/py-breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-breakpoint.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- testsuite/gdb.python/py-breakpoint.c 9 Apr 2010 09:41:43 -0000 1.1 +++ testsuite/gdb.python/py-breakpoint.c 12 Apr 2010 09:49:35 -0000 1.2 @@ -17,6 +17,7 @@ */ +int result = 0; int multiply (int i) { @@ -33,7 +34,6 @@ { int foo = 5; int bar = 42; - int result = 0; int i; for (i = 0; i < 10; i++)