On Friday 06 November 2009, Øyvind Harboe wrote: > Did you have any plans to get rid of those?
Not the ones that are really used. We could stop using them entirely if we had that Tcl interpreter structure I mentioned before ... where commands are searched for in order, with e.g. the 7/9 commands only accessible with a 7/9 target active. The ARM7TDMI and ARM9TDMI numbers weren't used, for example, and they went away. > Minimally they belong inside target_to_arm7_9(). No. In almost all cases, the type is known to be 7/9 since something else verified that. The only time such things need checking is on entry to commands, since those are global and typeless. > Ideally these sort of errors would be caught compile time, > so assert would be appropriate here. Not possible to catch them at compile time. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development