From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22239 invoked by alias); 26 Apr 2006 10:02:37 -0000 Received: (qmail 22158 invoked by uid 22791); 26 Apr 2006 10:02:36 -0000 X-Spam-Check-By: sourceware.org Received: from pproxy.gmail.com (HELO pproxy.gmail.com) (64.233.166.181) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Apr 2006 10:02:33 +0000 Received: by pproxy.gmail.com with SMTP id e30so2114952pya for ; Wed, 26 Apr 2006 03:02:31 -0700 (PDT) Received: by 10.35.127.7 with SMTP id e7mr89778pyn; Wed, 26 Apr 2006 03:02:25 -0700 (PDT) Received: by 10.35.26.13 with HTTP; Wed, 26 Apr 2006 03:02:25 -0700 (PDT) Message-ID: Date: Wed, 26 Apr 2006 14:03:00 -0000 From: Inder To: gdb@sourceware.org Subject: Re: GDB stub question? In-Reply-To: <20060424123222.GA20402@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <1145862112.7595.5.camel@localhost.localdomain> <20060424121630.GA19787@nevyn.them.org> <20060424123222.GA20402@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00314.txt.bz2 SGkgRGFuaWVsClRoYW5rcyBmb3IgeW91ciByZXNwb25jZS4gVGhlIHByb2Js ZW0gd2FzIHdpdGggdGhlIHNpZ25hbHMgcmVjZWl2ZWQKZnJvbSB0aGUgdGFy Z2V0IHdoaWNoIHByb21vdGVkIHRoZSBpbmYgdG8gYWJvcnQuCgpJIGRvIGhh dmUgYW5vdGhlciBxdWVzdGlvbiwgbm93IEdEQiBmb3Igc2luZ2xlIHNvdXJj ZSBzdGVwcGluZwpyZWNlaXZlcyBjb250cm9sIGFmdGVyIGV2ZXJ5IGluc3Ry dWN0aW9uIH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wed Apr 26 12:36:50 2006 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 5761 invoked by alias); 26 Apr 2006 12:36:48 -0000 Received: (qmail 5752 invoked by uid 22791); 26 Apr 2006 12:36:48 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 26 Apr 2006 12:36:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FYjG7-0004hK-53; Wed, 26 Apr 2006 08:36:43 -0400 Date: Wed, 26 Apr 2006 14:07:00 -0000 From: Daniel Jacobowitz To: Inder Cc: gdb@sourceware.org Subject: Re: GDB stub question? Message-ID: <20060426123642.GA18007@nevyn.them.org> Mail-Followup-To: Inder , gdb@sourceware.org References: <1145862112.7595.5.camel@localhost.localdomain> <20060424121630.GA19787@nevyn.them.org> <20060424123222.GA20402@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Delivered-To: mailing list gdb@sourceware.org X-SW-Source: 2006-04/txt/msg00315.txt.bz2 Content-length: 896 On Wed, Apr 26, 2006 at 03:32:25PM +0530, Inder wrote: > Hi Daniel > Thanks for your responce. The problem was with the signals received > from the target which promoted the inf to abort. > > I do have another question, now GDB for single source stepping > receives control after every instruction step. This makes single > stepping very slow if you have a slow serial interface. > > Is there any way we could revert back to the old way (i.e) > - set breakpoint at the next address > - continue > - remove breakpoint. GDB has never done this to implement source single stepping, so I don't know what you want. You can't predict the next address that far ahead; what if the current line contains a branch? You might want to look at the T packet response if you aren't already using it; supplying a few registers there can make stepping much faster. -- Daniel Jacobowitz CodeSourcery