From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23981 invoked by alias); 12 Jun 2008 19:44:05 -0000 Received: (qmail 23971 invoked by uid 22791); 12 Jun 2008 19:44:04 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jun 2008 19:43:39 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 8E5633C47E; Thu, 12 Jun 2008 12:43:37 -0700 (PDT) Subject: RE: Who uses gdbreplay? From: Michael Snyder To: Marc Khouzam Cc: gdb@sourceware.org In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA042911BF@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA042911BF@ecamlmw720.eamcs.ericsson.se> Content-Type: text/plain Date: Thu, 12 Jun 2008 19:44:00 -0000 Message-Id: <1213299817.3601.686.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) 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: 2008-06/txt/msg00121.txt.bz2 On Thu, 2008-06-12 at 15:28 -0400, Marc Khouzam wrote: > > > This very morning, I was asked if GDB had any kind of > > foundation for reverse > > > debugging on a target. Is gdbreplay what I am looking for? > > > > Not yet... ;-) > > A couple of years ago, you had posted a proposal about a gdb interface > for reverse debugging > http://sourceware.org/ml/gdb/2006-01/msg00013.html > > I guess this did not make it to GDB? Not to the main trunk, but it's preserved on a branch. I'm currently creating a new updated branch, with the eventual idea of working it into the trunk. > Am I correct to understand that the efforts for GDB Reverse debugging > are currently focused on teawater's GDB Record patch, which you guys > are helping with? Not quite... Teawater's excellent efforts are prompting me to revive this older work, and attempt to merge the two, preserving the best elements of each. But I would like to keep this thread focused on gdbreplay as much as possible. > To be honnest, I didn't look at the details of that patch (much too low > level for me). However, I was wondering if it considers reverse debugging > with a target (gdbserver or other stub?) From what I understand, > GDB Record, will record register and memory changes as they are made. > For some targets, storing all this may be prohibitive. > I wondered if the recording is done by GDB on the host instead? That is in fact how gdbreplay works. The log is recorded by gdb on the host side. Playback is done entirely on the host side, with no participation by the target (although to gdb it looks like the playback is coming from the remote target over a socket).