This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB interface with simulator
Daniel Jacobowitz writes:
> > I don't recall why support for gdbserver+sim has been removed.
> > Maybe I'm mistaken and it's still there and I just can't see it.
>
> Because there was no point. The current simulators link directly into
> GDB, and the simulator interface has changed since anyone tried to use
> gdbserver that way. The correct thing is to write a layer in your
> simulator that serves the same purpose (speaks the remote protocol).
> It's not too hard.
How about instead of adding it to every simulator,
just add it as a common piece of code that gets linked in with
<target>-run and turned on when some argument is passed.
OTOH, is all one would end up doing is copying a bunch of code
from gdb/gdbserver to sim/common?
[That's an honest question. Just trying to learn how you require it.]