From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28876 invoked by alias); 27 Jul 2006 13:34:39 -0000 Received: (qmail 28819 invoked by uid 22791); 27 Jul 2006 13:34:38 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 27 Jul 2006 13:34:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G660V-00044v-T0; Thu, 27 Jul 2006 09:34:31 -0400 Date: Fri, 28 Jul 2006 15:37:00 -0000 From: Daniel Jacobowitz To: Efim Monyak Cc: gdb@sources.redhat.com Subject: Re: restart for remote target Message-ID: <20060727133431.GA15615@nevyn.them.org> Mail-Followup-To: Efim Monyak , gdb@sources.redhat.com References: <44C63BD6.7090505@lipowsky.de> <20060725154543.GA13313@nevyn.them.org> <44C644A7.4000106@lipowsky.de> <20060725162649.GA14797@nevyn.them.org> <44C8A561.3060304@lipowsky.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C8A561.3060304@lipowsky.de> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00197.txt.bz2 On Thu, Jul 27, 2006 at 01:37:05PM +0200, Efim Monyak wrote: > Yes, is where a possibility to save breakpoint state (number, enable or > disable) before disable > breakpoints and apply it after enable? No. None of these things you want to do are possible in the GDB scripting language; it just isn't complex enough. Sorry. You could possibly drive GDB using something external and the machine interface (MI). There are tentative plans to hook up a real scripting language, but they aren't ready yet - it may be a while. > Because after "disable" command the information about breakpoint state > is lost. They all are disabled. > I must do it by GDB script. > Or is it possible to define an array as long as maximal possible number > of breakpoints? > I don't found a maximal possible value for $bpnum. There isn't a maximum. > >In many cases the stub can handle all of this automatically, > >manually disabling interrupts et cetera. > > > > > > stub receives command "insert breakpoint" for all enabled breakpoints > before program step or continue and > "remove breakpoint" after program stop. > > stub don't know breakpoints to be used on the next program step or continue. I meant have the stub completely handle the restart operation, loading, executing the bootloader, et cetera. -- Daniel Jacobowitz CodeSourcery