I was working with a JTAG debugger this morning(not OpenOCD).

It had a command with a seemingly optional argument.

prog [offset] [file] ...

So offset is optional, right?

Except the clever bit is that [offset] is parsed and stored in a global
persistent variable inside the JTAG debugger, so if you do:

prog 1234 file1
prog file2

The second one actually translates into "prog 1234 file2".

Nice.

The net effect is that I have to treat the argument as compulsory.
If I don't specify it, I'd have to make assumptions upon prior history.

OpenOCD is blessfully absent of commands that rely in cunning
ways upon previous commands executed. I seem to recall that
I deleted a few of those cases in the mists of time. If there are still
such cases left, I know juuuuust what to do with them :-)


-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

US toll free 1-866-980-3434 / International +47 51 87 40 27

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