From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5441 invoked by alias); 24 Sep 2005 10:05:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5407 invoked by uid 22791); 24 Sep 2005 10:05:48 -0000 Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 24 Sep 2005 10:05:48 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-199-112.inter.net.il [80.230.199.112]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CMI77378 (AUTH halo1); Sat, 24 Sep 2005 13:05:42 +0300 (IDT) Date: Sat, 24 Sep 2005 10:05:00 -0000 Message-Id: From: Eli Zaretskii To: Stan Shebs CC: michsnyd@cisco.com, ian@airs.com, gdb@sources.redhat.com In-reply-to: <4334A1D3.2030309@apple.com> (message from Stan Shebs on Fri, 23 Sep 2005 17:46:11 -0700) Subject: Re: Using reverse execution Reply-to: Eli Zaretskii References: <43309387.4020504@cisco.com> <4331C468.3080204@cisco.com> <4334A1D3.2030309@apple.com> X-SW-Source: 2005-09/txt/msg00181.txt.bz2 > Date: Fri, 23 Sep 2005 17:46:11 -0700 > From: Stan Shebs > Cc: Ian Lance Taylor , Eli Zaretskii , > gdb@sources.redhat.com > > In the case of reverse execution, one Appleite wondered why anybody > would bother, since you could repeatedly start the program over. And > indeed, GDB makes the restarting process pretty quick and easy; just > type "r". So reverse execution is not going to be a must-have unless > rerunning is either impossible (as in the case of intermittent bugs), > or very slow (as in the case of spending fifteen minutes giving > iTunes a particular pattern of mouse clicks and CD insertions, just > to get to the failing code). You gave the answer yourself: most non-trivial bugs require prolonged and complicated sequences of actions (program setup and user commands) to reproduce the buggy behavior. Restarting would mean that one needs to redo all that every time, which is a PITA.