Download Open On-Chip Debugger: OpenOCD User's Guide
Transcript
Chapter 21: Tcl Scripting API 97 21.3 OpenOCD specific Global Variables Real Tcl has ::tcl platform(), and platform::identify, and many other variables. JimTCL, as implemented in OpenOCD creates $ocd HOSTOS which holds one of the following values: • winxx Built using Microsoft Visual Studio • linux Linux is the underlying operating sytem • darwin Darwin (mac-os) is the underlying operating sytem. • cygwin Running under Cygwin • mingw32 Running under MingW32 • other Unknown, none of the above. Note: ’winxx’ was choosen because today (March-2009) no distinction is made between Win32 and Win64. Note: We should add support for a variable like Tcl variable tcl_ platform(platform), it should be called jim_platform (because it is jim, not real tcl).