From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26715 invoked by alias); 23 Jun 2005 16:57:40 -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 26623 invoked by uid 22791); 23 Jun 2005 16:57:32 -0000 Received: from 203.197.88.2.ill-pune.static.vsnl.net.in (HELO marvin.codito.net) (203.197.88.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 23 Jun 2005 16:57:32 +0000 Received: from [192.168.100.111] ([220.225.32.98]) (authenticated bits=0) by marvin.codito.net (8.13.4/8.13.4/Debian-2) with ESMTP id j5NGvZxh002727; Thu, 23 Jun 2005 22:27:40 +0530 Subject: Re: single-stepping remote target fails From: Ramana Radhakrishnan Reply-To: ramana.radhakrishnan@codito.com To: Chad Phillips Cc: gdb@sources.redhat.com In-Reply-To: <42BAD801.1000509@yahoo.com> References: <42BAD2C4.3070802@yahoo.com> <42BAD801.1000509@yahoo.com> Content-Type: text/plain Date: Thu, 23 Jun 2005 16:57:00 -0000 Message-Id: <1119545687.15278.62.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Status: Clean X-SW-Source: 2005-06/txt/msg00208.txt.bz2 On Thu, 2005-06-23 at 11:40 -0400, Chad Phillips wrote: > >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. > > Interesting. It makes no requests to set breakpoints. If I explicitly > set breakpoints, they work. But when I issue the step command, I get > no breakpoint commands at my proxy application from GDB. Any Ideas? Can your stub single step by itself without the debugger ? Guess you can do with the JTAG on. Does your remote stub support the single stepping packet ? In any case do a set debug remote 1 just before you single step and paste the output log over here. That could help answering. cheers Ramana > > >> 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. > > Thanks. That make sense. > > -Chad