On Wed, Nov 11, 2009 at 11:00 PM, Zach Welch <z...@superlucidity.net> wrote:
> On Wed, 2009-11-11 at 21:49 +0100, Øyvind Harboe wrote:
>> 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...
>
> Please restate this in the form of a problem that needs solving.
> You have stated a solution.  What was the original problem?
> Are there other possible solutions?  How does this solve it better than
> other alternatives?

In e.g. mrc/mcr we have an upcast happening, which can fail.
If it was a method on the target, then there would be a more
natural place to place the check for whether that method is supported.

Another byproduct/non-sequitor for mdw specifically is that the mdw command
is for humans(telnet ui) and the mdw method on the target would
be a tcl method that return an array. So I'm thinking that methods
on the target would be for tcl callers and the commands that
operate on the currently active target would be for the telnet
ui.

> The fact that you sometimes don't get a response could mean that nobody
> understood what you were talking about.  If you make such proposals by
> posting a patch series, the conversation should be more productive.  :)

I'm nowhere near a patch series yet. I'm also waiting for David to finish
up his first round of fixing the type problems.


-- 
Ø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