From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28759 invoked by alias); 7 Jan 2009 09:09:10 -0000 Received: (qmail 28749 invoked by uid 22791); 7 Jan 2009 09:09:10 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.186) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Jan 2009 09:09:06 +0000 Received: by ti-out-0910.google.com with SMTP id d10so6258170tib.12 for ; Wed, 07 Jan 2009 01:09:03 -0800 (PST) Received: by 10.110.53.14 with SMTP id b14mr12540750tia.58.1231319343617; Wed, 07 Jan 2009 01:09:03 -0800 (PST) Received: by 10.110.5.9 with HTTP; Wed, 7 Jan 2009 01:09:03 -0800 (PST) Message-ID: Date: Wed, 07 Jan 2009 09:09:00 -0000 From: teawater To: raja.saleru@iap-online.com Subject: Re: adding new commandline interface to gdb ? Cc: gdb@sourceware.org In-Reply-To: <17669.210.143.35.18.1231238129.squirrel@www.iap-online.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <33036.210.143.35.19.1225860010.squirrel@www.iap-online.com> <59596.210.143.35.18.1226650013.squirrel@www.iap-online.com> <28893.210.143.35.18.1227662837.squirrel@www.iap-online.com> <17669.210.143.35.18.1231238129.squirrel@www.iap-online.com> 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: 2009-01/txt/msg00031.txt.bz2 Read source in src/gdb/remote.c void _initialize_remote (void) On Tue, Jan 6, 2009 at 18:35, wrote: > > Hi, > > We are connecting gdb running on cygwin host into gdbserver running on > target using the command "target remote host:port". The gdbserver contains > the name of the target, for example > > TargetName = "xxx". > > We would like to read the name of the target from gdb, using command-line > interface. > Lets say we would like to add the new command > > (gdb) target info target-name > > This should display the target name "xxx". > > Initially before thinking on RSP protocol, we need to register this command. > > Please give us some guidelines on how to register or how to proceed to add > new commandline interface to get the target name. > > Thanks in advance > Raja Saleru >