Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Steven Johnson <sjohnson@neurizon.net>
To: karthik bala guru <bluekarthik@yahoo.com>
Cc: Lan Zhang <Lan.Zhang@Zoran.com>,  gdb@sources.redhat.com
Subject: Re: Using USB for GDB remote debug - The USB-GDB HOWTO !!
Date: Thu, 22 Jul 2004 04:04:00 -0000	[thread overview]
Message-ID: <40FF1636.8010402@neurizon.net> (raw)
In-Reply-To: <20040721052429.18564.qmail@web90103.mail.scd.yahoo.com>

USB Doesnt work like a normal TCP Pipe or a serial stream.  There are 
endpoints and what not.  If you have a USB Serial Port device, and a 
driver on your PC that knows how to talk to it, then using that from GDB 
should be like using any other Serial Port (whether it works properly is 
another question, because USB Serial Ports arent the most relaible of 
things.)

The other way to do it, would be to write a program that essentially 
bridged a TCP Socket to a USB Endpoint/s.  It would have to deal with 
USB Traffic issues, and link integrity to create a stream like 
interface.  Then connect to that program with GDB, which would just 
transparently pass the data it receives to and from GDB along the USB line.

Doing it native from GDB isnt probably going to happen, because USB is 
just not like a normal stream interface, and so there are no standard 
streaming USB Interfaces for GDB to connect to.

I Recommend getting a book on USB, and then looking into the Linux USB 
Interface Driver. It can be communicated to from an application, but it 
is a raw exposed USB Interface, with the endpoint mechansims exposed, etc.

Good Luck,
Steven


karthik bala guru wrote:

>Hi,
>Just see this link also....
>http://sources.redhat.com/ml/gdb/2000-11/msg00197.html
>
>http://sources.redhat.com/ml/insight/2003-q4/msg00016.html
>
>I think(as per my search), This USB GDB question is 
>left answered uncompletely many times. It would be 
>fine, if someone gives a very good insight in this 
>with some fine links+ideas .
>
>http://sources.redhat.com/ml/insight/2003-q2/msg00170.html
>The above link states, that one has to write
>a driver serial like for usb !! 
>
>where is the USB-GDB HOWTO ?????? does anyone have
>or Any link ??
>
>Regards,
>karthik bala guru
>
>
>--- Lan Zhang <Lan.Zhang@Zoran.com> wrote:
>  
>
>>Hi, 
>>
>>Can I using USB port instead of serial port to do
>>remote debug? Because
>>our embedded system only has USB port, so I can only
>>use USB to send and
>>receive GDB packet. Is there any version of GDB
>>support that? If not,
>>how to add a USB port into GDB? 
>>
>>Thanks a lot. 
>>
>>Regards,
>>Lan
>>
>>    
>>
>
>
>
>		
>__________________________________
>Do you Yahoo!?
>New and Improved Yahoo! Mail - Send 10MB messages!
>http://promotions.yahoo.com/new_mail 
>
>
>  
>


      reply	other threads:[~2004-07-22  1:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20 22:37 Using USB for GDB remote debug Lan Zhang
2004-07-21 13:12 ` Using USB for GDB remote debug - The USB-GDB HOWTO !! karthik bala guru
2004-07-22  4:04   ` Steven Johnson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40FF1636.8010402@neurizon.net \
    --to=sjohnson@neurizon.net \
    --cc=Lan.Zhang@Zoran.com \
    --cc=bluekarthik@yahoo.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox