From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16272 invoked by alias); 12 Feb 2003 20:20:20 -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 16263 invoked from network); 12 Feb 2003 20:20:19 -0000 Received: from unknown (HELO mail.s.netic.de) (212.9.160.11) by 172.16.49.205 with SMTP; 12 Feb 2003 20:20:19 -0000 Received: from host-212-9-162-122.dial.netic.de ([212.9.162.122] helo=schleim.qwe.de) by mail.s.netic.de with esmtp (Exim 4.10) id 18j3Mf-000CMI-00 for gdb@sources.redhat.com; Wed, 12 Feb 2003 21:20:18 +0100 Received: from schleim (localhost [127.0.0.1]) by schleim.qwe.de (Postfix) with ESMTP id 92B7BEC8 for ; Wed, 12 Feb 2003 21:17:58 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Torsten Mohr To: gdb Subject: Re: ARM7, remote GDB, Software Breakpoints Date: Wed, 12 Feb 2003 20:20:00 -0000 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302122117.58218.tmohr@s.netic.de> X-SW-Source: 2003-02/txt/msg00203.txt.bz2 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. 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.