From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22100 invoked by alias); 25 Jul 2006 16:27:00 -0000 Received: (qmail 22079 invoked by uid 22791); 25 Jul 2006 16:26:57 -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; Tue, 25 Jul 2006 16:26:55 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G5Pk9-0003rp-L3; Tue, 25 Jul 2006 12:26:49 -0400 Date: Tue, 25 Jul 2006 16:28:00 -0000 From: Daniel Jacobowitz To: Efim Monyak Cc: gdb@sources.redhat.com Subject: Re: restart for remote target Message-ID: <20060725162649.GA14797@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C644A7.4000106@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/msg00181.txt.bz2 On Tue, Jul 25, 2006 at 06:19:51PM +0200, Efim Monyak wrote: > I delete all breakpoints before load the applications again because my > Hardware supports only two > breakpoints. In other case I receive error from GDB. The load is > multistep. In one of steps I must set > an breakpoint to particular address and only one way I found to put it > away is command delete all breakpoints. > As I see no command deletes breakpoint on address. Use breakpoint to > source line is not very good on this place. "delete *0x3000000" should work. Also, it sounds like you want "disable", not "delete". > It is not possible for stub restart the application. They are often > problem if a remote target is used. > As I wrote set PC to start address works not properly if i.e. interrupts > are enabled. > If application runs from RAM it is lost after Hardware reset. > > The only handy way I see is to reload application set all used > breakpoints and start it again. In many cases the stub can handle all of this automatically, manually disabling interrupts et cetera. -- Daniel Jacobowitz CodeSourcery