On Thu, Nov 12, 2009 at 12:14 AM, David Brownell <davi...@pacbell.net> wrote:
> On Wednesday 11 November 2009, Řyvind Harboe wrote:
>> > And what happened to that more standard Tcl model I mentioned a
>> > while back ... a series of interpreters, with the current target
>> > object at the front of the series, and more global stuff back at
>> > the end?
>>
>> I don't understand this idea. How would you deal with a parallel
>> object hierarchy, e.g. interface specific commands vs. target
>> specific commands.
>
> Well, "mww" would be for the target, "jtag_khz" would be for
> the interface.  The series might be
>
>  current target --> interface --> globals

So you're saying that commands generally are methods
on target and interface and that the current target
and current interface gets to try, in order, a "bare" command
as a method on the implied object?

> And the "$target foo" versus $interface foo" could be different,
> if there were distinct "foo" commands.

But then typing the bare "foo" on the telnet ui would
always pick the current 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