This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Software-vs-hardware single-step vs. sim/non-sim targets.
- From: "Jakob Engblom" <jakob at virtutech dot com>
- To: "'Dave Korn'" <dave dot korn dot cygwin at googlemail dot com>, <gdb at sourceware dot org>
- Date: Sat, 5 Dec 2009 22:12:16 +0100
- Subject: RE: Software-vs-hardware single-step vs. sim/non-sim targets.
- References: <4B197BC0.5010708@gmail.com>
> 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