From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1919 invoked by alias); 23 Jun 2005 15:20:33 -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 1867 invoked by uid 22791); 23 Jun 2005 15:20:27 -0000 Received: from smtp018.mail.yahoo.com (HELO smtp018.mail.yahoo.com) (216.136.174.115) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 23 Jun 2005 15:20:27 +0000 Received: (qmail 94165 invoked from network); 23 Jun 2005 15:20:25 -0000 Received: from unknown (HELO ?192.168.3.100?) (jcphillips@216.54.38.110 with plain) by smtp018.mail.yahoo.com with SMTP; 23 Jun 2005 15:20:25 -0000 Message-ID: <42BAD2C4.3070802@yahoo.com> Date: Thu, 23 Jun 2005 15:20:00 -0000 From: Chad Phillips User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: single-stepping remote target fails Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg00204.txt.bz2 I have rewritten basic support for MCORE for gdb-6.3. Also, I have written a debug proxy application that accepts 'remote' connections from GDB via. socket and then manipulates the target using its JTAG/BDM interface. Now for the problems.... Context: Code being executed on the target is in Flash. As a result, I have only supported hardware breakpoints at this time. Two hardware breakpoints are available through the MCORE JTAG port. Problem 1. Single stepping in C source only steps by single machine instruction. I had expected that GDB might try to set breakpoints on the next instruction and then continue, but I see no such requests from GDB. How does GDB cause single steps through C (any high level language) source? Problem 2. When I issue the step command (or si, n, ni) to the target, GDB does a _lot_ of memory reads. It reads from the start of main up to the current PC (in main). What is it doing, and how can I make it stop? Thanks, Chad