From patchwork Wed Mar 11 14:39:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 5576 Received: (qmail 117010 invoked by alias); 11 Mar 2015 14:40:04 -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 116840 invoked by uid 89); 11 Mar 2015 14:40:03 -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, SPF_HELO_PASS, T_RP_MATCHES_RCVD 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 11 Mar 2015 14:40: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 t2BEe0B4012132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 11 Mar 2015 10:40:01 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2BEdwDM006029 for ; Wed, 11 Mar 2015 10:40:00 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 1/4] No longer handle negative 'step' in 'proceed' Date: Wed, 11 Mar 2015 14:39:55 +0000 Message-Id: <1426084798-1032-2-git-send-email-palves@redhat.com> In-Reply-To: <1426084798-1032-1-git-send-email-palves@redhat.com> References: <1426084798-1032-1-git-send-email-palves@redhat.com> Nothing ever passes a negative 'step' to proceed. Gets rid of one of the few remaining stop_after_trap references. gdb/ChangeLog 2015-03-11 Pedro Alves * infrun.c (proceed): No longer handle negative step. --- gdb/infrun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index 0f8f531..ed4ba79 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2588,10 +2588,8 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal, int step) pc = regcache_read_pc (regcache); tp = inferior_thread (); - if (step > 0) + if (step) step_start_function = find_pc_function (pc); - if (step < 0) - stop_after_trap = 1; /* Fill in with reasonable starting values. */ init_thread_stepping_state (tp);