Re: [PATCH] sim: testsuite: push $arch out to targets

Tom Tromey
2021-01-22T16:29:35Z

Mike> at the very least, i have it working now where each subdir can be built
Mike> and installed in a single build.

Nice.

Mike> this is helpful for doing quick tests
Mike> that changes at least compile. obviously can't link a single gdb from
Mike> this, but gotta start somewhere.

One thing that I think would be nice is if we removed remote-sim.c and
instead had the sim act as a gdbserver. This could be done either by
reusing gdbserver (writing a new sim-based back end) or by reusing one
of the tiny gdbserver stubs from gdb/stubs/.

This would support my long-term goal of making gdb always target-async.
Not all the targets are async-ready, but remote-sim is one that really
cannot be made async at all...

One problem with this idea is that the sim can renumber registers.
So I guess the sims would have to send over an XML register description.
Maybe there are gotchas here, I'm not sure.

Another problem is that this would lose CLI completion for sim commands.
However I suppose we could add a remote protocol request for this if we
really cared.

Curious to hear what you think of this.

Tom