RE: Software-vs-hardware single-step vs. sim/non-sim targets.

Jakob Engblom
2009-12-05T21:12:27Z

> I have a GDB port for a custom target, a sim-based simulator, and a gdbstub
> for use on the real thing. GDB can single step the simulator of course, since
> the support for simulated hardware-single-step is built in, but I'd like to
> save bytes in the gdbstub by not implementing support for the "s" command.

Can't you just use gdb-serial as the level of intermediation?

And hide all implementations behind a common facade, and use a single standard
gdb as the front-end?

/jakob