From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1937 invoked by alias); 6 Jan 2009 10:35:37 -0000 Received: (qmail 1929 invoked by uid 22791); 6 Jan 2009 10:35:36 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_05 X-Spam-Check-By: sourceware.org Received: from www.iap-online.com (HELO www.iap-online.com) (69.20.70.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Jan 2009 10:35:34 +0000 Received: from www.iap-online.com (localhost [127.0.0.1]) by www.iap-online.com (8.12.11.20060308/8.12.11) with ESMTP id n06AZTx6014629 for ; Tue, 6 Jan 2009 05:35:29 -0500 Received: (from apache@localhost) by www.iap-online.com (8.12.11.20060308/8.12.11/Submit) id n06AZTTl014627; Tue, 6 Jan 2009 05:35:29 -0500 Received: from 210.143.35.18 (SquirrelMail authenticated user raja.saleru) by www.iap-online.com with HTTP; Tue, 6 Jan 2009 05:35:29 -0500 (EST) Message-ID: <17669.210.143.35.18.1231238129.squirrel@www.iap-online.com> In-Reply-To: <28893.210.143.35.18.1227662837.squirrel@www.iap-online.com> 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> Date: Tue, 06 Jan 2009 10:35:00 -0000 Subject: adding new commandline interface to gdb ? From: raja.saleru@iap-online.com To: gdb@sourceware.org User-Agent: SquirrelMail/1.4.8-6.el3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Synonym: Copied by Synonym (http://www.modulo.ro/synonym) to: mscopy 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/msg00017.txt.bz2 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