GDB --> Parallel Port --> Target??

Jim Blandy jimb@redhat.com
Fri Oct 10 19:32:00 GMT 2003


Andrew Batchelor <A.C.Batchelor-99@student.lboro.ac.uk> writes:
> > It's been implemented many times over, and some implementations are
> > quite small and simple.  See the files called *-stub.c in the GDB
> > source tree.  Some of them are out-of-date, and none of them are
> > really tested or supported, but they'll give you the right idea.
> 
> Have I understood this correctly?  These stub files are mini-protocol
> converters?  For the target or can they be adapted for my RV-ICE?

Well, they're not protocol converters.  They're code that runs on the
target, along with your other code.  They patch into the trap vectors
so that they get control when your program hits a breakpoint, gets a
segfault, executes an illegal instruction, etc.  When GDB says
"continue", they just return from the trap, having frobbed registers
and memory however GDB asked.

I've never used an RV-ICE before, so I don't really know what sort of
interfaces they usually have.  Not very helpful, I'm afraid.



More information about the Gdb mailing list