From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20025 invoked by alias); 30 Aug 2006 13:43:52 -0000 Received: (qmail 20015 invoked by uid 22791); 30 Aug 2006 13:43:52 -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; Wed, 30 Aug 2006 13:43:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GIQM3-0005i2-9D; Wed, 30 Aug 2006 09:43:43 -0400 Date: Wed, 30 Aug 2006 13:43:00 -0000 From: Daniel Jacobowitz To: "Veenu Verma (AS/EAB)" Cc: gdb@sourceware.org Subject: Re: Breakpoint Handling in GDB Message-ID: <20060830134343.GA21877@nevyn.them.org> Mail-Followup-To: "Veenu Verma (AS/EAB)" , gdb@sourceware.org References: <1156944608.3429.275.camel@crx549.cro.st.com> <3DAB128F75626444BB9DEA00DC59AD5501B1F7A1@esealmw104.eemea.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DAB128F75626444BB9DEA00DC59AD5501B1F7A1@esealmw104.eemea.ericsson.se> 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-08/txt/msg00246.txt.bz2 On Wed, Aug 30, 2006 at 03:40:21PM +0200, Veenu Verma (AS/EAB) wrote: > Hello > I was going through the gdb internals on software breakpoint handling > and have a question regarding that. > Gdb replaces the program instruction with a trap which means target does > not have any control over setting a bp. > What happens if the connection with the gdb breaks down ? > Does it mean that the illegal instruction won't be restored and the > application will crash ? > If that's the case, then how can it be handled ? Implement the z0/Z0 packets in your stub instead, and then GDB will use them. -- Daniel Jacobowitz CodeSourcery