From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31765 invoked by alias); 9 Feb 2007 15:21:46 -0000 Received: (qmail 31728 invoked by uid 22791); 9 Feb 2007 15:21:42 -0000 X-Spam-Check-By: sourceware.org Received: from web53807.mail.yahoo.com (HELO web53807.mail.yahoo.com) (206.190.36.202) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 09 Feb 2007 15:21:25 +0000 Received: (qmail 29372 invoked by uid 60001); 9 Feb 2007 15:21:23 -0000 X-YMail-OSG: o58nHBYVM1lxUb7Fu61UVoB8EqzdRi_D8ORejtdXBlX4IsPlK7f0dWAxA4ozD0TvKw-- Received: from [194.237.142.10] by web53807.mail.yahoo.com via HTTP; Fri, 09 Feb 2007 07:21:22 PST X-Mailer: YahooMailRC/368.7 YahooMailWebService/0.6.132.7 Date: Fri, 09 Feb 2007 15:21:00 -0000 From: veenu khanna Subject: Re: GDB Stub & GPL question To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <123982.25433.qm@web53807.mail.yahoo.com> 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-02/txt/msg00054.txt.bz2 HI Daniel, I am still unclear. :( You mean to say that if we implement our own stub for gdb then it HAS to be= a serial connection. It can not be IP based.=20 I have another question as well. We are pondering over the idea to implement a gdb & gdbserver/stub solution= for our proprietary OS (embedded arch) And I have few doubts about the via= bility. It seems that multiple instances of gdbserver needs to be launched to conne= ct it to multiple processes. Is there a way to debug multiple processes wit= h single gdbserver instance ?=20 Say we write our own command in gdb to list all the processes in our OS. An= d then we do an attach from gdb like attach . Do you have any leads/ideas about how have people handled this problem ? Is= it do-able ? or the only way to debug multiple processes is to have multip= le instances of gdbserver.=20 Thanx in advance=20 ----- Original Message ---- From: Daniel Jacobowitz To: veenu khanna Cc: gdb@sourceware.org Sent: Wednesday, January 31, 2007 4:04:48 PM Subject: Re: GDB Stub & GPL question 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 im= plement/extend a stub for x86 architecture with our own OS. > IN section for "Implementing a remote stub (Section 17.5.3)" in "Debuggin= g with GDB" document there is a point > "Make sure you have a serial connection between your target machine and t= he gdb host, > and identify the serial port on the host." >=20 > Does this mean that GDB on host and GDB agent/stub on the target can only= talk on a serial port ?=20 >=20 > And in point 7 it says "Start gdb on the host, and connect to the target"= in which TCP connection is allowed as well. >=20 > Can someone help me in getting things right ?=20 > I know that it is possible to have a TCP communication between gdb and gd= bserver.=20 > Is there a support for the same for stubs ?=20 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 proprietar= y.=20 > Does that mean we will have to release the code for kernel as well ?=20 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. --=20 Daniel Jacobowitz CodeSourcery =20 ___________________________________________________________________________= _________ No need to miss a message. Get email on-the-go=20 with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail