public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* shared serial port in GDB
@ 2005-11-22 14:19 Inder
  2005-11-22 14:22 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Inder @ 2005-11-22 14:19 UTC (permalink / raw)
  To: gdb

Hi All,

I have a requirement that i need to use the same serial port to send
commands to the board and also debug it using GDB.

I have searched the archives there is only one discussion on this

 http://sources.redhat.com/ml/crossgcc/1999-q3/msg00265.html

I just wanted to know if such a feature is already available in GDB,
if not will it be useful if i wanted to add it in myself.

--
Thanks,
Inder

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

* Re: shared serial port in GDB
  2005-11-22 14:19 shared serial port in GDB Inder
@ 2005-11-22 14:22 ` Daniel Jacobowitz
  2005-11-22 19:30   ` Jim Blandy
  2005-11-22 20:15   ` Jim Blandy
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-11-22 14:22 UTC (permalink / raw)
  To: Inder; +Cc: gdb

On Tue, Nov 22, 2005 at 07:49:06PM +0530, Inder wrote:
> Hi All,
> 
> I have a requirement that i need to use the same serial port to send
> commands to the board and also debug it using GDB.
> 
> I have searched the archives there is only one discussion on this
> 
>  http://sources.redhat.com/ml/crossgcc/1999-q3/msg00265.html
> 
> I just wanted to know if such a feature is already available in GDB,
> if not will it be useful if i wanted to add it in myself.

Doing this outside of gdb may be more useful.  I vaguely recall a Linux
tool for this, called kdmx (for demux):
  http://linux.junsun.net/porting-howto/src/kdmx-1.02.tar.gz

-- 
Daniel Jacobowitz
CodeSourcery, LLC

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

* Re: shared serial port in GDB
  2005-11-22 14:22 ` Daniel Jacobowitz
@ 2005-11-22 19:30   ` Jim Blandy
  2005-11-22 20:15   ` Jim Blandy
  1 sibling, 0 replies; 4+ messages in thread
From: Jim Blandy @ 2005-11-22 19:30 UTC (permalink / raw)
  To: Inder, gdb

Or, depending on the sorts of commands you need to send, GDB's
'monitor' command might be helpful.  It sends an 'qRcmd' packet to the
stub, and the stub can do with it whatever it likes.

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

* Re: shared serial port in GDB
  2005-11-22 14:22 ` Daniel Jacobowitz
  2005-11-22 19:30   ` Jim Blandy
@ 2005-11-22 20:15   ` Jim Blandy
  1 sibling, 0 replies; 4+ messages in thread
From: Jim Blandy @ 2005-11-22 20:15 UTC (permalink / raw)
  To: gdb

Veering off-topic: when I deal with the remote protocol, I often
wonder how small one could get a PPP implementation.  The remote
protocol's half-hearted gestures at layering, control character
transparency, and so on just seem kind of dumb.  One wouldn't need to
implement all the little PPP sub-protocols.  But it would be cool to
actually talk to a stub over TCP, and be able to assume a reliable
connection.

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

end of thread, other threads:[~2005-11-22 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-22 14:19 shared serial port in GDB Inder
2005-11-22 14:22 ` Daniel Jacobowitz
2005-11-22 19:30   ` Jim Blandy
2005-11-22 20:15   ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).