From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17804 invoked by alias); 4 Nov 2008 00:15:50 -0000 Received: (qmail 17734 invoked by uid 22791); 4 Nov 2008 00:15:48 -0000 X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Nov 2008 00:14:26 +0000 Received: by ti-out-0910.google.com with SMTP id d10so1510444tib.12 for ; Mon, 03 Nov 2008 16:14:22 -0800 (PST) Received: by 10.110.43.20 with SMTP id q20mr572773tiq.15.1225757662020; Mon, 03 Nov 2008 16:14:22 -0800 (PST) Received: by 10.110.42.9 with HTTP; Mon, 3 Nov 2008 16:14:21 -0800 (PST) Message-ID: Date: Tue, 04 Nov 2008 00:15:00 -0000 From: teawater To: "Pedro Alves" Subject: Re: [RFA] target adjust pc after break with itself Cc: "gdb-patches@sourceware.org" , "Michael Snyder" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-11/txt/msg00015.txt.bz2 Hi Pedro, Could you please help me review it? http://sourceware.org/ml/gdb-patches/2008-11/msg00004.html Thanks, Hui On Sun, Nov 2, 2008 at 14:01, teawater wrote: > Hi Pedro, > > According to your idea, I write a patch > "target_adjust_pc_with_itself.txt" for it. It's for the main trunk and > 20080930 branch. > > 2008-11-02 Hui Zhu > > * target.h (target_ops): Add "to_adjust_pc_with_itself". > Return true if target adjust pc after break with itself. > (target_adjust_pc_with_itself): New macro. > Call "to_adjust_pc_with_itself". > * target.c (update_current_target): Set > "to_adjust_pc_with_itself". > * infrun.c (adjust_pc_after_break): If > "target_adjust_pc_with_itself" return true, not adjust pc. > > To make P record support it. I make another patch > "record_adjust_pc_with_itself.txt". > > 2008-11-02 Hui Zhu > > * record.c (record_adjust_pc_with_itself): New function. > Return true. > (init_record_ops): Set to_adjust_pc_with_itself point to > record_adjust_pc_with_itself. > > Thanks, > Hui >