From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17262 invoked by alias); 2 Jun 2009 21:49:21 -0000 Received: (qmail 17249 invoked by uid 22791); 2 Jun 2009 21:49:20 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f157.google.com (HELO mail-gx0-f157.google.com) (209.85.217.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Jun 2009 21:49:13 +0000 Received: by gxk1 with SMTP id 1so14256188gxk.0 for ; Tue, 02 Jun 2009 14:49:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.69.4 with SMTP id w4mr494560ybk.190.1243979347079; Tue, 02 Jun 2009 14:49:07 -0700 (PDT) From: Edward Peschko Date: Tue, 02 Jun 2009 21:49:00 -0000 Message-ID: <5cfa99000906021448y5a7b4418l8578052bbd79757e@mail.gmail.com> Subject: industrial use of 'record' and replay. To: "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-06/txt/msg00020.txt.bz2 All, First of all, I'm really glad to see that record and replay is going to make it into gdb. Predictions aren't easy here, but my guess is that it is going to revolutionize debugging.. However, I had a few questions, about 'scaling up' the use of this: 1. Suppose that one has an extremely long process, one which takes hours to 'get' to the bug.. How can one 'short circuit' this process so that you don't need to replay for hours to get to it? 2. Suppose that one has a test suite, one that runs a command - or series of commands - multiple times. How does one save states of 'interest', ones that cause segfaults or deadlocks? 3. Suppose that one is testing something like a server, one that has multiple processes.. is there a way to 'record' without running under gdb, or to record sub processes as via strace or truss? I'm sure I'll have more as I start using it, but any ideas on the above would be very helpful.. Ed