From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4659 invoked by alias); 23 Jun 2005 15:25:07 -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 4612 invoked by uid 22791); 23 Jun 2005 15:25:03 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 23 Jun 2005 15:25:03 +0000 Received: from drow by nevyn.them.org with local (Exim 4.51) id 1DlTZe-0002o0-3N; Thu, 23 Jun 2005 11:25:02 -0400 Date: Thu, 23 Jun 2005 15:25:00 -0000 From: Daniel Jacobowitz To: Chad Phillips Cc: gdb@sources.redhat.com Subject: Re: single-stepping remote target fails Message-ID: <20050623152501.GA10660@nevyn.them.org> Mail-Followup-To: Chad Phillips , gdb@sources.redhat.com References: <42BAD2C4.3070802@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42BAD2C4.3070802@yahoo.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00205.txt.bz2 On Thu, Jun 23, 2005 at 11:18:28AM -0400, Chad Phillips wrote: > 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? It does hardware single steps until the source line of the $pc changes. > 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? Preumably it is doing prologue analysis. You need to work out (A) why it triggered the prolgoue analyzer and (B) whether you should be using unwind information instead of prologue analysis. -- Daniel Jacobowitz CodeSourcery, LLC