From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14383 invoked by alias); 27 Jan 2009 10:39:02 -0000 Received: (qmail 14371 invoked by uid 22791); 27 Jan 2009 10:39:01 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_39,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Jan 2009 10:38:54 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id n0RAcnRw003957; Tue, 27 Jan 2009 04:38:49 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 27 Jan 2009 04:38:49 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFA] Patch to fix "reverse-next" command error Date: Tue, 27 Jan 2009 17:15:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BF2D@ecamlmw720.eamcs.ericsson.se> References: From: "Marc Khouzam" To: "teawater" , "Michael Snyder" , "Pedro Alves" Cc: 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: 2009-01/txt/msg00518.txt.bz2 Hi, =20 just to confirm that this fixes the problem for me. =20 Thanks teawater =20 Marc ________________________________ From: teawater [mailto:teawater@gmail.com] Sent: Thu 1/22/2009 4:00 AM To: Michael Snyder; Pedro Alves Cc: Marc Khouzam; gdb-patches@sourceware.org Subject: [RFA] Patch to fix "reverse-next" command error Hi guys, This patch is for bug in http://sourceware.org/ml/gdb/2009-01/msg00146.html This issue is because sometime the inferior is already in function start address (i.e. plt), set a breakpoint and continue will make "reverse-next" work error. This patch make inferior step if it reverse step and stop at the function start address. It tested OK with process record patch and testsuite gdb.twreverse in branch reverse-20081226-branch. 2009-01-22 Hui Zhu * infrun.c (handle_inferior_event): Make inferior step if it stepping over a function call in reverse , and stop at the start address of the function. OK for mainline? Thanks, Hui