From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30916 invoked by alias); 28 Sep 2009 18:12:53 -0000 Received: (qmail 30904 invoked by uid 22791); 28 Sep 2009 18:12:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Sep 2009 18:12:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id E48542BAB58; Mon, 28 Sep 2009 14:07:28 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IaT7xjEmmzbJ; Mon, 28 Sep 2009 14:07:28 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C50092BAB57; Mon, 28 Sep 2009 14:07:27 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 64BEDF5946; Mon, 28 Sep 2009 09:07:28 -0700 (PDT) Date: Mon, 28 Sep 2009 18:12:00 -0000 From: Joel Brobecker To: Hui Zhu Cc: Michael Snyder , "gdb-patches@sourceware.org" Subject: Re: [RFA] let record_resume fail immediately on error Message-ID: <20090928160728.GB9003@adacore.com> References: <4AA5D713.1060305@vmware.com> <20090908065843.GO30677@adacore.com> <4AA68C92.7070905@vmware.com> <4ABE5E8D.8080209@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-09/txt/msg00880.txt.bz2 > With the fix error patch: [...] > (gdb) c > Continuing. > Process record doesn't support instruction rdtsc. > Process record doesn't support instruction 0xf31 at address 0x8048352. > main (argc=, argv=, > envp=) at 4.c:14 > 14 asm ("rdtsc"); > Process record: failed to record execution log. > (gdb) > Continuing. > Process record doesn't support instruction rdtsc. > Process record doesn't support instruction 0xf31 at address 0x8048352. > main (argc=, argv=, > envp=) at 4.c:14 > 14 asm ("rdtsc"); > Process record: failed to record execution log. I am going to defer to Michael who understands the issues much better than I do; I am a little confused by what you are suggesting. On the one hand, I understand that the problem you're trying to deal with is the case when the inferior exits. Are you talking about normal exiting as well as abnormal exiting like in your case? In any event, what you show in your example looks like a bandaid that will only handle a specific situation: In other words, it works around the issue because you no longer let the inferior exit. -- Joel