Here is an idea:

make mdw/mww family of commands a method on the
target.

foo.cpu mdw => returns array

write a small mdw proc in Tcl that invokes the above method
on the currently active target.

Consider the mrc/mcr case. If we treat it in the same
way, then we're in "c land" when we're trying to figure
out if  mcr/mrc is an operation that is legal on that
type of target...

-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to