Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB Stub & GPL question
@ 2007-01-31 15:02 veenu khanna
  2007-01-31 15:04 ` Daniel Jacobowitz
  0 siblings, 1 reply; 11+ messages in thread
From: veenu khanna @ 2007-01-31 15:02 UTC (permalink / raw)
  To: gdb

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 ? 

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 ? 

Thanx
Veenu





 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: GDB Stub & GPL question
@ 2007-02-09 15:21 veenu khanna
  2007-02-09 15:34 ` Daniel Jacobowitz
  2007-02-09 15:35 ` Paul Koning
  0 siblings, 2 replies; 11+ messages in thread
From: veenu khanna @ 2007-02-09 15:21 UTC (permalink / raw)
  To: gdb

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. 

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 viability.
It seems that multiple instances of gdbserver needs to be launched to connect it to multiple processes. Is there a way to debug multiple processes with single gdbserver instance ? 
Say we write our own command in gdb to list all the processes in our OS. And then we do an attach from gdb like attach <pid> .

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 multiple instances of gdbserver. 


Thanx in advance 


----- Original Message ----
From: Daniel Jacobowitz <drow@false.org>
To: veenu khanna <veenu_khanna@yahoo.com>
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 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





 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-02-09 15:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 15:02 GDB Stub & GPL question veenu khanna
2007-01-31 15:04 ` Daniel Jacobowitz
2007-01-31 19:10   ` Nicholas Mc Guire
2007-01-31 19:13     ` Daniel Jacobowitz
2007-02-01  1:12     ` Robert Dewar
2007-02-01  5:26       ` Nicholas Mc Guire
2007-02-01  9:44         ` Robert Dewar
2007-02-01 22:51   ` Mark Kettenis
2007-02-09 15:21 veenu khanna
2007-02-09 15:34 ` Daniel Jacobowitz
2007-02-09 15:35 ` Paul Koning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox