From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3794 invoked by alias); 10 Nov 2008 10:53:35 -0000 Received: (qmail 3772 invoked by uid 22791); 10 Nov 2008 10:53:34 -0000 X-Spam-Check-By: sourceware.org Received: from mail.idnet.net.uk (HELO mail.idnet.net.uk) (212.69.36.63) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Nov 2008 10:52:29 +0000 Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.01.3664/NU3963.00.7ca42f0c) with ESMTP id owblknba for gdb@sourceware.org; Mon, 10 Nov 2008 10:52:21 +0000 Subject: Re: gdb internal functionality From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: gdb@sourceware.org Cc: raja.saleru@iap-online.com, ebo@sandien.com In-Reply-To: References: <33036.210.143.35.19.1225860010.squirrel@www.iap-online.com> , <33036.210.143.35.19.1225860010.squirrel@www.iap-online.com> Content-Type: text/plain Date: Mon, 10 Nov 2008 10:53:00 -0000 Message-Id: <1226314344.28583.105.camel@thomas> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-AuthenticatedSender: jeremy.bennett.embecosm.com@idnet.net.uk X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00072.txt.bz2 On Fri, 2008-11-07 at 05:21 -0700, EBo wrote: > > Hi, > > > > I would like to know more of GDB internals especially the control flow and > > functionality for the following gdb commands. For ex. the development > > environment include gdb on cygwin environment, which is connected to > > OpenOCD, which inturn connects to ARM target. Any information on this > > would be very helpful. > > > > 1. target remote host:port > > 2. stepi > > 3. contrinue > > 4. break linenum > > 5. delete bpnum > > 6. watch expression > > 7. set/read register value > > 8. read/write memory > > 9. quit > > 10. monitor reset > > > > Thanks in Advance > > Raja Saleru > > Hi Raja, I assume you've looked at the GDB Internals document (in the distribution or on the website). You'll also find the GDB IRC (#gdb on irc.freenode.net) very helpful for specific questions. Michael Snyder has given you some suggestions for the commands you list. You may also like to look at the guide to porting GDB I wrote earlier this year. http://www.embecosm.com/download/ean3.html Chapter 2 includes some example procedural flows, which include some of the commands you list above. Hope this helps, Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com