From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20593 invoked by alias); 12 Mar 2013 10:04:10 -0000 Received: (qmail 20580 invoked by uid 22791); 12 Mar 2013 10:04:08 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Mar 2013 10:03:54 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UFM3k-00041V-IM from Hui_Zhu@mentor.com ; Tue, 12 Mar 2013 03:03:52 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 12 Mar 2013 03:03:52 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Tue, 12 Mar 2013 03:03:51 -0700 Message-ID: <513EFD85.2090107@mentor.com> Date: Tue, 12 Mar 2013 10:04:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: CC: , Pedro Alves Subject: Re: [PATCH] Support targets that know how to continue over breakpoints[1/4] -- GDB References: <51322425.6090007@mentor.com> In-Reply-To: <51322425.6090007@mentor.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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: 2013-03/txt/msg00504.txt.bz2 Ping http://sourceware.org/ml/gdb-patches/2013-03/msg00054.html Thanks, Hui On 03/03/13 00:09, Hui Zhu wrote: > Hello, > > According to the mail thread in http://sourceware-org.1504.n7.nabble.com/PATCH-Support-targets-that-know-how-to-step-over-breakpoints-td61666.html > I update patches to change step to continue. When thread hop needed, GDB can use continue over breakpoints let the inferior keep going. > > The interface that add to target is: > to_can_continue_over_breakpoints, it will return true if target can continue over breakpoints. > to_next_continue_over_breakpoints, call this function before call to_resume will make to_resume do continue_over_breakpoints instead of continue. > > This patch is the GDB part that support continue over breakpoints. And there also have patches for doc, server and test. I will introduce them clear inside the mails of that paches. > > Please help me review it. > > Thanks, > Hui > > 2013-03-03 Luis Machado > Pedro Alves > Hui Zhu > > * infrun.c (handle_inferior_event): Check if target can continue > over breakpoints. > > * remote.c (struct remote_state): New member > can_continue_over_breakpoints. > (remote_continue_over_breakpoints_feature): New. > (remote_protocol_features): Add ContinueOverBreakpoints feature. > (remote_open_1): Clear can_continue_over_breakpoints. > (remote_is_cob): New. > (append_resumption, remote_resume): Check remote_is_cob. > (remote_can_continue_over_breakpoints, > remote_next_continue_over_breakpoints): New. > (init_remote_ops): Set remote_ops.to_can_continue_over_breakpoints > to remote_can_continue_over_breakpoints. > Set to_next_continue_over_breakpoints to > remote_next_continue_over_breakpoints. > > * target.c (update_current_target): Inherit > to_can_continue_over_breakpoints, and default it to return 0. > Inherit to_next_continue_over_breakpoints. > > * target.h (struct target_ops): Add new > to_can_step_over_breakpoints member. > (target_can_step_over_breakpoints): New. >