This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [WIP] TI msp430 CIO support
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 17 May 2013 16:10:13 -0700
- Subject: Re: [WIP] TI msp430 CIO support
- References: <20130516212358 dot 23f3bcdb at mesquite dot lan> <201305171744 dot 00275 dot vapier at gentoo dot org>
On Fri, 17 May 2013 17:43:59 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> you could have the simulator detect the case when it's running standalone
> (i.e. not via gdb) and patch the symbols to run a custom insn. maybe hijack
> an opcode that doesn't map to a valid insn and then when your sim hits that,
> see if it's a known cio point. if it isn't, throw an exception like normal,
> else let the simulator process the cio operation itself.
>
> you could even have this code run when doing a simulation via gdb and it'll
> "just work". but you might want to keep the behavior in that case the same as
> if you were running it on real hardware.
We actually do have minimal support in the simulator that's used
when the sim is not connected to the debugger. Only "write" is
supported. This is just enough to run the tests.
We could probably turn this back on when the sim is used via GDB too.
If you look at the sim patch, search for "msp430_cio".
Kevin