This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: USB support for GDB
- From: Jim Blandy <jimb at redhat dot com>
- To: Sachin Bharadwaj <sachin at multitech dot co dot in>
- Cc: insight at sources dot redhat dot com
- Date: 06 Oct 2003 13:33:49 -0500
- Subject: Re: USB support for GDB
- References: <3F810792.E9AD0451@multitech.co.in>
Sachin Bharadwaj <sachin@multitech.co.in> writes:
> How do I start modifying Insight/GDB for communicating through USB. I
> have a sample Linux USB driver, with which I want to interface the
> Insight/GDB 5.1.
I don't know anything about talking to USB devices, but I would guess
that you would need to create a new serial_ops structure (see
serial.h) pointing to functions that do the right thing, and call
serial_add_interface to register it.
Then you'll need to add a case to serial_open in serial.c to parse the
argument to 'target remote'.