From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23946 invoked by alias); 23 Dec 2009 18:15:46 -0000 Received: (qmail 23933 invoked by uid 22791); 23 Dec 2009 18:15:45 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Dec 2009 18:15:40 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id C193D1906E; Wed, 23 Dec 2009 10:15:37 -0800 (PST) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost2.vmware.com (Postfix) with ESMTP id B89348E57F; Wed, 23 Dec 2009 10:15:37 -0800 (PST) Message-ID: <4B325D82.4010102@vmware.com> Date: Wed, 23 Dec 2009 18:15:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20090624) MIME-Version: 1.0 To: Julian Smith CC: "gdb@sources.redhat.com" Subject: Re: reverse-next doing repeated reverse-stepi's ? References: <20091223170048.88d90ba6.jsmith@undo-software.com> In-Reply-To: <20091223170048.88d90ba6.jsmith@undo-software.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00147.txt.bz2 Julian Smith wrote: > I've been trying out reverse-next with UndoDB as a remote debug server, > and it looks like reverse-next works by doing repeated > `bs' (reverse-stepi) commands. > > I was expecting it to set breakpoints and do `bc' (reverse-continue) > commands, by analogy with normal forwards step etc. > > Am i doing something wrong here ? Or is this the expected behaviour ? Short answer: this is expected behavior. Forward-next works the same way, in general. Both forward-next and reverse-next will set breakpoints under some circumstances, but will often work by singlestepping.