On Wed, Oct 22, 2014 at 7:47 PM, Kent Brinkley <[email protected]> wrote:
> Hi Guys, > > > > I would like to remove redundant commands from openocd, for example both > mips32 and m4k targets have “cp0” command (exactly the same code) . There > is no reason to have duplicate commands but I would like not to break > backward compatibility. Is there a way to reference the COMMAND_HANDLER > (mips32_handle_cp0_command) code (mips32.c) from mips_m4k.c? > > > I'm not up to speed on how the mips code is organized but removing duplicates is a noble goal, thanks for working on that. There is a way to call one command handler from another, but I'm wondering if the correct way isn't to group the common commands and chain them into both targets' command handler list. Or is that impossible while maintaining the same syntax? /Andreas
------------------------------------------------------------------------------
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
