From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2698 invoked by alias); 25 Jun 2005 04:32:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2689 invoked by uid 22791); 25 Jun 2005 04:32:56 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 25 Jun 2005 04:32:56 +0000 Received: from drow by nevyn.them.org with local (Exim 4.51) id 1Dm2Le-0007HE-AH; Sat, 25 Jun 2005 00:32:54 -0400 Date: Sat, 25 Jun 2005 04:32:00 -0000 From: Daniel Jacobowitz To: Chad Phillips Cc: gdb@sources.redhat.com Subject: Re: GDB requires software breakpoints? Message-ID: <20050625043254.GA27884@nevyn.them.org> Mail-Followup-To: Chad Phillips , gdb@sources.redhat.com References: <42BC6F5D.1080506@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42BC6F5D.1080506@yahoo.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00247.txt.bz2 On Fri, Jun 24, 2005 at 04:38:53PM -0400, Chad Phillips wrote: > Problem 1: > After attaching to the target which is stopped in main, I issue the step > command. The target correctly steps to the next source line. At the > end of the stepping process, GDB tries to set a breakpoint at main. > Using 'info break' replies "No breakpoints or watchpoints." > > First: How can I prevent it from trying to do this? It doesn't in general. Main is special, if you don't have a recognizable dynamic loader. > Second: It attempt to set a software breakpoint, which is not supported > by the stub. Then it tries to write a software breakpoint (instruction > 0x0000) to memory at the start of main, which fails since the stub > cannot write to flash. Why is it doing this if the stub has already > indicated that software breakpoints are not supported? Try just making the software breakpoint request set a hardware breakpoint. -- Daniel Jacobowitz CodeSourcery, LLC