From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26770 invoked by alias); 12 Feb 2003 06:01:58 -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 26755 invoked from network); 12 Feb 2003 06:01:57 -0000 Received: from unknown (HELO mail.s.netic.de) (212.9.160.11) by 172.16.49.205 with SMTP; 12 Feb 2003 06:01:57 -0000 Received: from host-212-9-162-11.dial.netic.de ([212.9.162.11] helo=schleim.qwe.de) by mail.s.netic.de with esmtp (Exim 4.10) id 18ipxz-000N1y-00 for gdb@sources.redhat.com; Wed, 12 Feb 2003 07:01:55 +0100 Received: from schleim (localhost [127.0.0.1]) by schleim.qwe.de (Postfix) with ESMTP id B22D9DB8 for ; Wed, 12 Feb 2003 06:59:36 +0100 (CET) Content-Type: text/plain; charset="us-ascii" From: Torsten Mohr To: gdb Subject: ARM7, remote GDB, Software Breakpoints Date: Wed, 12 Feb 2003 06:01:00 -0000 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302120659.36397.tmohr@s.netic.de> X-SW-Source: 2003-02/txt/msg00195.txt.bz2 Hi, i have several questions related to the GDB remote protocol server i wrote ( http://www.s.netic.de/tmohr/pppcb-0.5.0.tar.bz2 ), it would be great if someone could give me some hints. 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. 2. When i use SW breakpoints and download and start a program on the target, first the program is downloaded and then the SW breakpoints are set. SW breakpoints are done by replacing the instruction at that address with a "breakpoint instruction". When the program stops on a "breakpoint instruction", and i then do a "step" or "continue", that original instruction is NOT EXECUTED, it seems i have to restore that value temporarily, do a "single step" and put back that "breakpoint instruction" again, right? =46rom watching the communication between target and server i assume it is like this, i just want to make sure this is the way to handle it and i don't miss anything. 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? Best regards, Torsten.