From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19143 invoked by alias); 24 Mar 2013 05:36:29 -0000 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 Received: (qmail 19075 invoked by uid 89); 24 Mar 2013 05:36:21 -0000 X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from mail-ob0-f175.google.com (HELO mail-ob0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 24 Mar 2013 05:36:18 +0000 Received: by mail-ob0-f175.google.com with SMTP id va7so1957222obc.20 for ; Sat, 23 Mar 2013 22:36:17 -0700 (PDT) X-Received: by 10.60.1.34 with SMTP id 2mr6855496oej.47.1364103377158; Sat, 23 Mar 2013 22:36:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.13.133 with HTTP; Sat, 23 Mar 2013 22:35:37 -0700 (PDT) In-Reply-To: <51322425.6090007@mentor.com> References: <51322425.6090007@mentor.com> From: Hui Zhu Date: Sun, 24 Mar 2013 12:33:00 -0000 Message-ID: Subject: Re: [PATCH] Support targets that know how to continue over breakpoints[1/4] -- GDB To: Hui Zhu Cc: gdb-patches@sourceware.org, lgustavo@codesourcery.com, Pedro Alves Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-03/txt/msg00892.txt.bz2 Ping http://sourceware.org/ml/gdb-patches/2013-03/msg00054.html Thanks, Hui On Sun, Mar 3, 2013 at 12:09 AM, 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. >