From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21043 invoked by alias); 15 Aug 2011 13:32:59 -0000 Received: (qmail 21031 invoked by uid 22791); 15 Aug 2011 13:32:58 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Aug 2011 13:32:41 +0000 Received: (qmail 27727 invoked from network); 15 Aug 2011 13:32:41 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Aug 2011 13:32:41 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: What role does gdb/remote.c play? Date: Mon, 15 Aug 2011 13:32:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.7.0; x86_64; ; ) Cc: Triple Yang References: <54475b.156ef.131ccb300f5.Coremail.yongyong.yang@ia.ac.cn> <201108151109.56890.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201108151432.33454.pedro@codesourcery.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: 2011-08/txt/msg00044.txt.bz2 On Monday 15 August 2011 12:51:11, Triple Yang wrote: > Then, if I want to create a new remote target, should I just modify > remote.c or reuse codes in it? I don't know what your new target does, so I can't answer that for you. > How do I map command 'target remote' to the new target I created? You don't. Do you _really_ need to implement a new target in gdb? Why not teach the remote end the RSP instead? Then you can use "target remote", without adding new code to gdb. > It seems I did what those documents told me to, but things don't work. I'm confused. What documents? I only pointed you at the GDB manual, to check the RSP documentation. Here: http://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html -- Pedro Alves