From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8710 invoked by alias); 9 Oct 2008 02:50:15 -0000 Received: (qmail 8701 invoked by uid 22791); 9 Oct 2008 02:50:14 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Oct 2008 02:49:39 +0000 Received: (qmail 7447 invoked from network); 9 Oct 2008 02:49:37 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Oct 2008 02:49:37 -0000 From: Pedro Alves To: teawater Subject: Re: [reverse] PATCH: Several interface changes Date: Thu, 09 Oct 2008 02:50:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org, "Michael Snyder" References: <200810071709.48346.pedro@codesourcery.com> <200810090027.54477.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810090349.37968.pedro@codesourcery.com> 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: 2008-10/txt/msg00272.txt.bz2 On Thursday 09 October 2008 03:31:47, teawater wrote: > Maybe P record doesn't need make threads execute in different > direction. Cause P record reverse executes base on replay mode. This > mode will replay the memory change and the registers change. And all > threads of one process share the memory. So... You're thinking single-inferior. What about threads of different inferiors behind a single target_ops? Say, you're attached to process A, but you're leaving it running (you'll hit internal breakpoints in forward mode), while you're debugging/inspecting process B in reverse. There you have your two threads, on a single target, where the single per-target direction flag stops making sense. I understand the idealism behind this. I just posted the patch to show the direction I think we will end up taking, instead of trying to explain it by: "it would be nice if you did it the way I'm saying". -- Pedro Alves