From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1770 invoked by alias); 19 Dec 2008 07:26:03 -0000 Received: (qmail 1762 invoked by uid 22791); 19 Dec 2008 07:26:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Dec 2008 07:25:27 +0000 Received: by ti-out-0910.google.com with SMTP id d10so582084tib.12 for ; Thu, 18 Dec 2008 23:25:24 -0800 (PST) Received: by 10.110.70.17 with SMTP id s17mr4205402tia.58.1229671523908; Thu, 18 Dec 2008 23:25:23 -0800 (PST) Received: by 10.110.68.20 with HTTP; Thu, 18 Dec 2008 23:25:23 -0800 (PST) Message-ID: Date: Fri, 19 Dec 2008 07:26:00 -0000 From: teawater To: "Michael Snyder" , "gdb-patches@sourceware.org" Subject: Re: [RFA] Resubmit process record and replay, 6/10 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_38607_30022797.1229671523898" References: 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-12/txt/msg00339.txt.bz2 ------=_Part_38607_30022797.1229671523898 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 1066 This is the new version patch. On Sun, Nov 16, 2008 at 16:22, teawater wrote: > This patch to add some process record and replay to infrun.c. > > Code for function "use_displaced_stepping" is make sure that displaced > stepping function will disable when process record and replay target > is opened. Because process record and replay target doesn't support > displaced stepping function. > > Code for function "proceed" is call function "record_not_record_set" > to set process record and replay target doesn't record the execute > log. Because when GDB resume the inferior, process record and replay > target doesn't need to record the memory and register store operation > of GDB. > > 2008-11-16 Hui Zhu > > * infrun.c (use_displaced_stepping): Return false if process > record and replay target is used. > (proceed): Call function "record_not_record_set" if pocess > record and replay target is used. > > infrun.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > ------=_Part_38607_30022797.1229671523898 Content-Type: text/plain; name=6-infrun.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fowivlcv1 Content-Disposition: attachment; filename=6-infrun.txt Content-length: 1318 LS0tIGEvaW5mcnVuLmMKKysrIGIvaW5mcnVuLmMKQEAgLTUwLDYgKzUwLDgg QEAKICNpbmNsdWRlICJtaS9taS1jb21tb24uaCIKICNpbmNsdWRlICJldmVu dC10b3AuaCIKIAorI2luY2x1ZGUgInJlY29yZC5oIgorCiAvKiBQcm90b3R5 cGVzIGZvciBsb2NhbCBmdW5jdGlvbnMgKi8KIAogc3RhdGljIHZvaWQgc2ln bmFsc19pbmZvIChjaGFyICosIGludCk7CkBAIC02MDQsNyArNjA2LDggQEAK ICAgcmV0dXJuICgoKGNhbl91c2VfZGlzcGxhY2VkX3N0ZXBwaW5nID09IGNh bl91c2VfZGlzcGxhY2VkX3N0ZXBwaW5nX2F1dG8KIAkgICAgJiYgbm9uX3N0 b3ApCiAJICAgfHwgY2FuX3VzZV9kaXNwbGFjZWRfc3RlcHBpbmcgPT0gY2Fu X3VzZV9kaXNwbGFjZWRfc3RlcHBpbmdfb24pCi0JICAmJiBnZGJhcmNoX2Rp c3BsYWNlZF9zdGVwX2NvcHlfaW5zbl9wIChnZGJhcmNoKSk7CisJICAmJiBn ZGJhcmNoX2Rpc3BsYWNlZF9zdGVwX2NvcHlfaW5zbl9wIChnZGJhcmNoKQor CSAgJiYgIVJFQ09SRF9JU19VU0VEKTsKIH0KIAogLyogQ2xlYW4gb3V0IGFu eSBzdHJheSBkaXNwbGFjZWQgc3RlcHBpbmcgc3RhdGUuICAqLwpAQCAtMTMw OSw2ICsxMzEyLDEyIEBACiAgIGlmIChzdGVwIDwgMCk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