From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11479 invoked by alias); 22 Jul 2004 01:19:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11452 invoked from network); 22 Jul 2004 01:19:54 -0000 Received: from unknown (HELO gizmo01bw.bigpond.com) (144.140.70.11) by sourceware.org with SMTP; 22 Jul 2004 01:19:54 -0000 Received: (qmail 22561 invoked from network); 22 Jul 2004 01:19:51 -0000 Received: from unknown (HELO BWMAM17.bigpond.com) (144.135.24.116) by gizmo01bw.bigpond.com with SMTP; 22 Jul 2004 01:19:51 -0000 Received: from cpe-203-51-245-96.qld.bigpond.net.au ([203.51.245.96]) by BWMAM17.bigpond.com(MAM REL_3_4_2a 279/26550541) with SMTP id 26550541; Thu, 22 Jul 2004 11:19:51 +1000 Message-ID: <40FF1636.8010402@neurizon.net> Date: Thu, 22 Jul 2004 04:04:00 -0000 From: Steven Johnson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.6) Gecko/20040115 MIME-Version: 1.0 To: karthik bala guru CC: Lan Zhang , gdb@sources.redhat.com Subject: Re: Using USB for GDB remote debug - The USB-GDB HOWTO !! References: <20040721052429.18564.qmail@web90103.mail.scd.yahoo.com> In-Reply-To: <20040721052429.18564.qmail@web90103.mail.scd.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00276.txt.bz2 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 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 > > > >