From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25578 invoked by alias); 24 Apr 2006 06:05:34 -0000 Received: (qmail 25570 invoked by uid 22791); 24 Apr 2006 06:05:34 -0000 X-Spam-Check-By: sourceware.org Received: from pproxy.gmail.com (HELO pproxy.gmail.com) (64.233.166.180) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 24 Apr 2006 06:05:31 +0000 Received: by pproxy.gmail.com with SMTP id e30so1290330pya for ; Sun, 23 Apr 2006 23:05:29 -0700 (PDT) Received: by 10.35.109.2 with SMTP id l2mr417305pym; Sun, 23 Apr 2006 23:05:29 -0700 (PDT) Received: by 10.35.26.13 with HTTP; Sun, 23 Apr 2006 23:05:29 -0700 (PDT) Message-ID: Date: Mon, 24 Apr 2006 07:21:00 -0000 From: Inder To: gdb@sourceware.org Subject: GDB stub question? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline 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/msg00295.txt.bz2 LS0KVGhhbmtzLApJbmRlcgo= >From gdb-return-25008-listarch-gdb=sources.redhat.com@sourceware.org Mon Apr 24 06:13:18 2006 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 2298 invoked by alias); 24 Apr 2006 06:13:17 -0000 Received: (qmail 2290 invoked by uid 22791); 24 Apr 2006 06:13:17 -0000 X-Spam-Check-By: sourceware.org Received: from pproxy.gmail.com (HELO pproxy.gmail.com) (64.233.166.182) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 24 Apr 2006 06:13:15 +0000 Received: by pproxy.gmail.com with SMTP id e30so1292310pya for ; Sun, 23 Apr 2006 23:13:14 -0700 (PDT) Received: by 10.35.17.8 with SMTP id u8mr490426pyi; Sun, 23 Apr 2006 23:13:14 -0700 (PDT) Received: by 10.35.26.13 with HTTP; Sun, 23 Apr 2006 23:13:13 -0700 (PDT) Message-ID: Date: Mon, 24 Apr 2006 08:29:00 -0000 From: Inder To: gdb@sourceware.org Subject: GDB stub question? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: 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/msg00296.txt.bz2 Content-length: 623 SGkgQWxsCgpJIGhhdmUgcG9ydGVkIGEgR0RCIHN0dWIgZm9yIEFSTSBiYXNl ZCBzeXN0ZW0sIGJ1dCB3aGVuIGkgdHJpZWQgZG9pbmcKc291cmNlIHN0ZXBw aW5nIEdEQiAoR0RCIDYuNCkgIGhvc3Qgc2VuZHMgdGhlIGZvbGxvd2luZyBw YWNrZXQgdG8gdGhlCnRhcmdldCBzeXN0ZW06CgogIC0tLT4gJFMxMiNiNgoK d2hpY2ggdGVsbCB0aGUgdGFyZ2V0IHRvIGFjdHVhbGx5IGRvIGEgc2luZ2xl IGluc3RydWN0aW9uIHN0ZXAuIEkKYmVsaWV2ZSBpbiB0aGUgcHJldmlvdXMg dmVyc2lvbnMgb2YgR0RCIHNvdXJjZSBzdGVwcGluZyB3YXMgZG9uZSBieQpz ZXR0aW5nIHRoZSBicmVha3BvaW50IHRvIHRoZSBuZXh0IHNvdXJjZSBsaW5l IGFuZCB0aGVuIGNvbnRpbnVlLgoKQW0gaSBtaXNzaW5nIHNvbWV0aGluZyBo ZXJlLgoKQW55IGhlbHAgd2lsbCBiZSBhcHByaWNpYXRlZC4KCi0tClRoYW5r cywKSW5kZXIK >From gdb-return-25009-listarch-gdb=sources.redhat.com@sourceware.org Mon Apr 24 07:21:52 2006 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 4493 invoked by alias); 24 Apr 2006 07:21:46 -0000 Received: (qmail 4485 invoked by uid 22791); 24 Apr 2006 07:21:45 -0000 X-Spam-Check-By: sourceware.org 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.31) with ESMTP; Mon, 24 Apr 2006 07:21:42 +0000 Received: from zirakzigil.codito.co.in ([220.225.32.98]) (authenticated bits=0) by marvin.codito.net (8.13.5/8.13.5/Debian-3) with ESMTP id k3O7AWEr017434 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Mon, 24 Apr 2006 12:40:32 +0530 Subject: Re: GDB stub question? From: Ramana Radhakrishnan Reply-To: ramana.radhakrishnan@codito.com To: Inder Cc: gdb@sourceware.org In-Reply-To: References: Content-Type: text/plain Date: Mon, 24 Apr 2006 12:16:00 -0000 Message-Id: <1145862112.7595.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Status: Clean 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/msg00297.txt.bz2 Content-length: 899 This means your stub is capable of doing single stepping by itself. S12 would mean give signal 12 to the debuggee. >From the manual -> `S'SIG`;'ADDR -- step with signal Like `C' but step not continue. If you need more help show a complete log of the remote protocol for the steps you did and the behaviour you expected / observed. - Ramana On Mon, 2006-04-24 at 11:43 +0530, Inder wrote: > Hi All > > I have ported a GDB stub for ARM based system, but when i tried doing > source stepping GDB (GDB 6.4) host sends the following packet to the > target system: > > ---> $S12#b6 > > which tell the target to actually do a single instruction step. I > believe in the previous versions of GDB source stepping was done by > setting the breakpoint to the next source line and then continue. > > Am i missing something here. > > Any help will be appriciated. > > -- > Thanks, > Inder