This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB --> Parallel Port --> Target??


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]