From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25339 invoked by alias); 31 Jan 2007 15:04:55 -0000 Received: (qmail 25329 invoked by uid 22791); 31 Jan 2007 15:04:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 31 Jan 2007 15:04:50 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HCH0y-0006Uf-4f; Wed, 31 Jan 2007 10:04:48 -0500 Date: Wed, 31 Jan 2007 15:04:00 -0000 From: Daniel Jacobowitz To: veenu khanna Cc: gdb@sourceware.org Subject: Re: GDB Stub & GPL question Message-ID: <20070131150448.GA24917@nevyn.them.org> Mail-Followup-To: veenu khanna , gdb@sourceware.org References: <256227.64036.qm@web53809.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <256227.64036.qm@web53809.mail.yahoo.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-01/txt/msg00358.txt.bz2 On Wed, Jan 31, 2007 at 07:02:04AM -0800, veenu khanna wrote: > Hello > I have a question regarding implementing a remote stub. Say we have to implement/extend a stub for x86 architecture with our own OS. > IN section for "Implementing a remote stub (Section 17.5.3)" in "Debugging with GDB" document there is a point > "Make sure you have a serial connection between your target machine and the gdb host, > and identify the serial port on the host." > > Does this mean that GDB on host and GDB agent/stub on the target can only talk on a serial port ? > > And in point 7 it says "Start gdb on the host, and connect to the target" in which TCP connection is allowed as well. > > Can someone help me in getting things right ? > I know that it is possible to have a TCP communication between gdb and gdbserver. > Is there a support for the same for stubs ? Yes, it's exactly the same - I'm sorry the manual is unclear. > Another question is regarding GPL... > some part of stub code will be residing in our kernel which is proprietary. > Does that mean we will have to release the code for kernel as well ? If you copy the stub from the GDB source tree, then yes you would have a GPL problem. I recommend writing one from scratch, instead, based on the documentation - that's what most people seem to do. The examples in GDB are quite old. -- Daniel Jacobowitz CodeSourcery