From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18592 invoked by alias); 12 Feb 2003 21:27:29 -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 18584 invoked from network); 12 Feb 2003 21:27:28 -0000 Received: from unknown (HELO TheWorld.com) (199.172.62.103) by 172.16.49.205 with SMTP; 12 Feb 2003 21:27:28 -0000 Received: from shell.TheWorld.com (root@shell01.TheWorld.com [199.172.62.241]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id QAA29075; Wed, 12 Feb 2003 16:27:26 -0500 Received: from localhost (qqi@localhost) by shell.TheWorld.com (8.9.3/8.9.3) with ESMTP id QAA264529; Wed, 12 Feb 2003 16:27:27 -0500 (EST) X-Authentication-Warning: shell01.TheWorld.com: qqi owned process doing -bs Date: Wed, 12 Feb 2003 21:27:00 -0000 From: Quality Quorum To: Torsten Mohr cc: gdb Subject: Re: ARM7, remote GDB, Software Breakpoints In-Reply-To: <200302122117.58218.tmohr@s.netic.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-02/txt/msg00205.txt.bz2 On Wed, 12 Feb 2003, Torsten Mohr wrote: > Hi, > > thanks for your hint. > > > > 1. I could handle HW breakpoints, how can i tell GDB that it should > > > use HW breakpoints? Just answering requests for SW breakpoints with > > > "ENN" doesn't seem to make GDB use HW breakpoints. > > > > You have to implement commands starting with 'Z' and 'z' in order to > > support hw breakpoints. > > Yes, i do that. According to GDB remote protocol, when i answer > a request for "Z0..." with "ENN" (means "i can't handle software > breakpoints"), GDB doesn't try hardware breakpoints. As far as understand in order to set hw-breakpoint, user should explicitly say that he/she wants hw-breakpoint (I do not remember precise syntax), ' 'breakpoint' is always a software breakpoint. > > But maybe, when i have some hardware that doesn't run in RAM, > but in Flash-ROM, i think i'd rather like to have HW breakpoints. > Also, when i don't answer with "ENN", but with "" (empty), > GDB doesn't try HW breakpoints. > > > > It is very strange, because gdb works exactly this way. I am wondering do > > you have 'step' command implemented? > > Oops, my misinterpretation of that protocol. Yes, it just works > as it is. Great. > > > > > 3. Thumb mode is not handled at all at the moment, what do i need > > > to do to handle Thumb mode? > > > If GDB downloads a program into the target and sets the PC to a > > > certain address, how does my server know if it should execute this > > > in ARM or in Thumb mode? > > > Thanks, > Torsten. > Thanks, Aleksey