Skip to content

Commit efafdd3

Browse files
zapb-0borneoa
authored andcommitted
doc/manual: Fix Tcl spelling
Use 'Tcl' because it is the official spelling. While at it, fix some misspellings of 'Jim Tcl'. Change-Id: I2d96f63b0dbc96ae62fe00ae41d2eb16897250fb Signed-off-by: Marc Schink <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8853 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent 98c95df commit efafdd3

File tree

9 files changed

+56
-56
lines changed

9 files changed

+56
-56
lines changed

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ layered architecture of JTAG interface and TAP support including:
88
- debug target support (e.g. ARM, MIPS): single-stepping,
99
breakpoints/watchpoints, gprof profiling, etc;
1010
- flash chip drivers (e.g. CFI, NAND, internal flash);
11-
- embedded TCL interpreter for easy scripting.
11+
- embedded Tcl interpreter for easy scripting.
1212

1313
Several network interfaces are available for interacting with OpenOCD:
14-
telnet, TCL, and GDB. The GDB server enables OpenOCD to function as a
14+
telnet, Tcl, and GDB. The GDB server enables OpenOCD to function as a
1515
"remote target" for source-level debugging of embedded systems using
1616
the GNU GDB program (and the others who talk GDB protocol, e.g. IDA
1717
Pro).

TODO

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ may have evolved an idea since it was added here.
1212

1313
Feel free to send patches to add or clarify items on this list, too.
1414

15-
@section thelisttcl TCL
15+
@section thelisttcl Tcl
1616

17-
This section provides possible things to improve with OpenOCD's TCL support.
17+
This section provides possible things to improve with OpenOCD's Tcl support.
1818

1919
- Fix problem with incorrect line numbers reported for a syntax
2020
error in a reset init event.
2121

22-
- organize the TCL configurations:
22+
- organize the Tcl configurations:
2323
- provide more directory structure for boards/targets?
2424
- factor configurations into layers (encapsulation and re-use)
2525

2626
- Fix handling of variables between multiple command line "-c" and "-f"
2727
parameters. Currently variables assigned through one such parameter
2828
command/script are unset before the next one is invoked.
2929

30-
- Isolate all TCL command support:
30+
- Isolate all Tcl command support:
3131
- Pure C CLI implementations using --disable-builtin-tcl.
3232
- Allow developers to build new dongles using OpenOCD's JTAG core.
3333
- At first, provide only low-level JTAG support; target layer and
3434
above rely heavily on scripting event mechanisms.
35-
- Allow full TCL support? add --with-tcl=/path/to/installed/tcl
36-
- Move TCL support out of foo.[ch] and into foo_tcl.[ch] (other ideas?)
35+
- Allow full Tcl support? add --with-tcl=/path/to/installed/tcl
36+
- Move Tcl support out of foo.[ch] and into foo_tcl.[ch] (other ideas?)
3737
- See src/jtag/core.c and src/jtag/tcl.c for an example.
38-
- allow some of these TCL command modules to be dynamically loadable?
38+
- allow some of these Tcl command modules to be dynamically loadable?
3939

4040
@section thelistadapter Adapter
4141

@@ -75,7 +75,7 @@ directly in minidriver API for better embedded host performance.
7575

7676
The following tasks have been suggested for adding new core JTAG support:
7777

78-
- Improve autodetection of TAPs by supporting tcl escape procedures that
78+
- Improve autodetection of TAPs by supporting Tcl escape procedures that
7979
can configure discovered TAPs based on IDCODE value ... they could:
8080
- Remove guessing for irlen
8181
- Allow non-default irmask/ircapture values
@@ -133,7 +133,7 @@ TCP/IP packets handled by the server.
133133
- add BSDL support?
134134

135135
A few possible options for the above:
136-
-# Fake a TCL equivalent?
136+
-# Fake a Tcl equivalent?
137137
-# Integrate an existing library?
138138
-# Write a new C implementation a la Jim?
139139

doc/manual/helper.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ portability API.
2121

2222
/** @page helperjim OpenOCD Jim API
2323

24-
The Jim API provides access to a small-footprint TCL implementation.
24+
The Jim API provides access to a small-footprint Tcl implementation.
2525

2626
Visit http://jim.tcl.tk/ for more information on Jim.
2727

doc/manual/jtag.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ asynchronous transactions.
1515
- used by other modules
1616

1717
- @subpage jtagtcl
18-
- @b private TCL handling routines
18+
- @b private Tcl handling routines
1919
- defined in @c src/jtag/tcl.c
2020
- registers and handles Jim commands that configure and use the JTAG core
2121

@@ -47,7 +47,7 @@ This section needs to be expanded.
4747

4848
*/
4949

50-
/** @page jtagtcl JTAG TCL API
50+
/** @page jtagtcl JTAG Tcl API
5151

5252
This section needs to be expanded.
5353

doc/manual/primer/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OpenOCD presently produces several kinds of documentation:
66
- The User's Guide:
77
- Focuses on using the OpenOCD software.
88
- Details the installation, usage, and customization.
9-
- Provides descriptions of public Jim/TCL script commands.
9+
- Provides descriptions of public Jim Tcl script commands.
1010
- Written using GNU texinfo.
1111
- Created with 'make pdf' or 'make html'.
1212
- See @subpage primertexinfo and @ref styletexinfo.

doc/manual/primer/tcl.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
/** @page primertcl OpenOCD TCL Primer
1+
/** @page primertcl OpenOCD Tcl Primer
22

3-
The @subpage scripting page provides additional TCL Primer material.
3+
The @subpage scripting page provides additional Tcl Primer material.
44

55
@verbatim
66

77
****************************************
88
****************************************
99

1010
This is a short introduction to 'un-scare' you about the language
11-
known as TCL. It is structured as a guided tour through the files
11+
known as Tcl. It is structured as a guided tour through the files
1212
written by me [Duane Ellis] - in early July 2008 for OpenOCD.
1313

1414
Which uses the "JIM" embedded Tcl clone-ish language.
1515

16-
Thing described here are *totally* TCL generic... not Jim specific.
16+
Thing described here are *totally* Tcl generic... not Jim specific.
1717

1818
The goal of this document is to encourage you to add your own set of
19-
chips to the TCL package - and most importantly you should know where
19+
chips to the Tcl package - and most importantly you should know where
2020
you should put them - so they end up in an organized way.
2121

2222
--Duane Ellis.
@@ -57,14 +57,14 @@ Definition:
5757
Open: at91sam7x256.tcl
5858
=== TCL TOUR ===
5959

60-
A walk through --- For those who are new to TCL.
60+
A walk through --- For those who are new to Tcl.
6161

6262
Examine the file: at91sam7x256.tcl
6363

6464
It starts with:
6565
source [find path/filename.tcl]
6666

67-
In TCL - this is very important.
67+
In Tcl - this is very important.
6868

6969
Rule #1 Everything is a string.
7070
Rule #2 If you think other wise See #1.
@@ -130,7 +130,7 @@ First, there is a "for" loop - at level 0
130130
This means it is evaluated when the file is parsed.
131131

132132
== SIDEBAR: About The FOR command ==
133-
In TCL, "FOR" is a funny thing, it is not what you think it is.
133+
In Tcl, "FOR" is a funny thing, it is not what you think it is.
134134

135135
Syntactically - FOR is a just a command, it is not language
136136
construct like for(;;) in C...
@@ -191,7 +191,7 @@ proc create_mask { MSB LSB } {
191191
Like "for" - PROC is really just a command that takes 3 parameters.
192192
The (1) NAME of the function, a (2) LIST of parameters, and a (3) BODY
193193

194-
Again, this is at "level 0" so it is a global function. (Yes, TCL
194+
Again, this is at "level 0" so it is a global function. (Yes, Tcl
195195
supports local functions, you put them inside of a function}
196196

197197
You'll see in some cases, I nest [brackets] a lot and in others I'm
@@ -257,7 +257,7 @@ For example - 'show_mmr32_reg' is given the NAME of the register to
257257
display. The assumption is - the NAME is a global variable holding the
258258
address of that MMR.
259259

260-
The code does some tricks. The [set [set NAME]] is the TCL way
260+
The code does some tricks. The [set [set NAME]] is the Tcl way
261261
of doing double variable interpolation - like makefiles...
262262

263263
In a makefile or shell script you may have seen this:
@@ -272,7 +272,7 @@ In a makefile or shell script you may have seen this:
272272
#BUILD = mac
273273
FOO = ${FOO_${BUILD}}
274274

275-
The "double [set] square bracket" thing is the TCL way, nothing more.
275+
The "double [set] square bracket" thing is the Tcl way, nothing more.
276276

277277
----
278278

@@ -352,7 +352,7 @@ tricks with interpretors.
352352

353353
Function: show_mmr32_bits()
354354

355-
In this case, we use the special TCL command "upvar" which tcl's way
355+
In this case, we use the special Tcl command "upvar" which is the Tcl way
356356
of passing things by reference. In this case, we want to reach up into
357357
the callers lexical scope and find the array named "NAMES"
358358

@@ -373,7 +373,7 @@ are basically identical...
373373

374374
Second - there can be many of them.
375375

376-
In this case - I do some more TCL tricks to dynamically
376+
In this case - I do some more Tcl tricks to dynamically
377377
create functions out of thin air.
378378

379379
Some assumptions:
@@ -409,7 +409,7 @@ And - declare that variable as GLOBAL so the world can find it.
409409
Then - we dynamically create a function - based on the register name.
410410

411411
Look carefully at how that is done. You'll notice the FUNCTION BODY is
412-
a string - not something in {braces}. Why? This is because we need TCL
412+
a string - not something in {braces}. Why? This is because we need Tcl
413413
to evaluate the contents of that string "*NOW*" - when $vn exists not
414414
later, when the function "show_FOO" is invoked.
415415

doc/manual/scripting.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
The scripting support is intended for developers of OpenOCD.
66
It is not the intention that normal OpenOCD users will
7-
use tcl scripting extensively, write lots of clever scripts,
7+
use Tcl scripting extensively, write lots of clever scripts,
88
or contribute back to OpenOCD.
99

1010
Target scripts can contain new procedures that end users may
11-
tinker to their needs without really understanding tcl.
11+
tinker to their needs without really understanding Tcl.
1212

1313
Since end users are not expected to mess with the scripting
1414
language, the choice of language is not terribly important
@@ -38,16 +38,16 @@ Default implementation of procedures in tcl/procedures.tcl.
3838
and will have no externally visible consequences.
3939
Tcl has an advantage in that it's syntax is backwards
4040
compatible with the current OpenOCD syntax.
41-
- external scripting. Low level tcl functions will be defined
42-
that return machine readable output. These low level tcl
43-
functions constitute the tcl api. flash_banks is such
44-
a low level tcl proc. "flash banks" is an example of
41+
- external scripting. Low level Tcl functions will be defined
42+
that return machine readable output. These low level Tcl
43+
functions constitute the Tcl api. flash_banks is such
44+
a low level Tcl proc. "flash banks" is an example of
4545
a command that has human readable output. The human
4646
readable output is expected to change in between versions
4747
of OpenOCD. The output from flash_banks may not be
4848
in the preferred form for the client. The client then
4949
has two choices a) parse the output from flash_banks
50-
or b) write a small piece of tcl to output the
50+
or b) write a small piece of Tcl to output the
5151
flash_banks output to a more suitable form. The latter may
5252
be simpler.
5353

doc/manual/server.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ with a script language:
4343
What follows hopefully shows how the plans to solve these problems
4444
materialized and help to explain the grand roadmap plan.
4545

46-
@subsection serverdocsjim Why JimTCL? The Internal Script Language
46+
@subsection serverdocsjim Why Jim Tcl? The Internal Script Language
4747

4848
At the time, the existing "command context schema" was proving itself
4949
insufficient. However, the problem was also considered from another
@@ -57,14 +57,14 @@ OpenOCD. Yuck. OpenOCD already has a complex enough build system, why
5757
make it worse?
5858

5959
The goal was to add a simple language that would be moderately easy to
60-
work with and be self-contained. JimTCL is a single C and single H
60+
work with and be self-contained. Jim Tcl is a single C and single H
6161
file, allowing OpenOCD to avoid the spider web of dependent packages.
6262

63-
@section serverdocstcl TCL Server Port
63+
@section serverdocstcl Tcl Server Port
6464

65-
The TCL Server port was added in mid-2008. With embedded TCL, we can
65+
The Tcl Server port was added in mid-2008. With embedded Tcl, we can
6666
write scripts internally to help things, or we can write "C" code that
67-
interfaces well with TCL.
67+
interfaces well with Tcl.
6868

6969
From there, the developers wanted to create an external front-end that
7070
would be @a very usable and that @a any language could utilize,
@@ -78,7 +78,7 @@ also support a high degree of interoperability with multiple systems.
7878
They are not human-centric protocols; more correctly, they are rigid,
7979
terse, simple ASCII protocols that are easily parsable by a script.
8080

81-
Thus, the TCL server -- a 'machine' type socket interface -- was added
81+
Thus, the Tcl server -- a 'machine' type socket interface -- was added
8282
with the hope was it would output simple "name-value" pair type
8383
data. At the time, simple name/value pairs seemed reasonably easier to
8484
do at the time, though Maybe it should output JSON;
@@ -107,7 +107,7 @@ What works easier and is less work is what is already present in every
107107
platform? The answer: A web browser. In other words, OpenOCD could
108108
serve out embedded web pages via "localhost" to your browser.
109109

110-
Long before OpenOCD had a TCL command line, Zylin AS built their ZY1000
110+
Long before OpenOCD had a Tcl command line, Zylin AS built their ZY1000
111111
device with a built-in HTTP server. Later, they were willing to both
112112
contribute and integrate most of that work into the main tree.
113113

@@ -128,8 +128,8 @@ every language has it's own set of wack-ness, parameter marshaling is
128128
painful.
129129

130130
What about "callbacks" and structures, and other mess. Imagine
131-
debugging that system. When JimTCL was introduced Spencer Oliver had
132-
quite a few well-put concerns (Summer 2008) about the idea of "TCL"
131+
debugging that system. When Jim Tcl was introduced Spencer Oliver had
132+
quite a few well-put concerns (Summer 2008) about the idea of "Tcl"
133133
taking over OpenOCD. His concern is and was: how do you debug
134134
something written in 2 different languages? A "SWIG" front-end is
135135
unlikely to help that situation.
@@ -143,7 +143,7 @@ to Localhost or remote host, however one might want to make it work.
143143

144144
A socket interface is very simple. One could write a Java application
145145
and serve it out via the embedded web server, could it - or something
146-
like it talk to the built in TCL server? Yes, absolutely! We are on to
146+
like it talk to the built in Tcl server? Yes, absolutely! We are on to
147147
something here.
148148

149149
@subsection serverdocplatforms Platform Permutations
@@ -167,9 +167,9 @@ the Socket Approach is used.
167167

168168
@subsection serverdocfuture Development Scale Out
169169

170-
During 2008, Duane Ellis created some TCL scripts to display peripheral
171-
register contents. For example, look at the sam7 TCL scripts, and the
172-
stm32 TCL scripts. The hope was others would create more.
170+
During 2008, Duane Ellis created some Tcl scripts to display peripheral
171+
register contents. For example, look at the sam7 Tcl scripts, and the
172+
stm32 Tcl scripts. The hope was others would create more.
173173

174174

175175
A good example of this is display/view the peripheral registers on
@@ -208,7 +208,7 @@ upon it, sometimes that is the only scheme available.
208208
As a small group of developers, supporting all the platforms and
209209
targets in the debugger will be difficult, as there are enough problem
210210
with the plethora of Adapters, Chips, and different target boards.
211-
Yes, the TCL interface might be suitable, but it has not received much
211+
Yes, the Tcl interface might be suitable, but it has not received much
212212
love or attention. Perhaps it will after you read and understand this.
213213

214214
One reason might be, this adds one more host side requirement to make
@@ -247,8 +247,8 @@ Altogether, it provides a universally accessible GUI for OpenOCD.
247247

248248
@section serverdocshtml Simple HTML Pages
249249

250-
There is (or could be) a simple "Jim TCL" function to read a memory
251-
location. If that can be tied into a TCL script that can modify the
250+
There is (or could be) a simple "Jim Tcl" function to read a memory
251+
location. If that can be tied into a Tcl script that can modify the
252252
HTTP text, then we have a simple script-based web server with a JTAG
253253
engine under the hood.
254254

@@ -275,7 +275,7 @@ bit-banging JTAG Adapter serving web pages.
275275

276276
@subsection serverdocshtmladv Advanced HTML Pages
277277

278-
Java or JavaScript could be used to talk back to the TCL port. One
278+
Java or JavaScript could be used to talk back to the Tcl port. One
279279
could write a Java, AJAX, FLASH, or some other developer friendly
280280
toolbox and get a real cross-platform GUI interface. Sure, the interface
281281
is not native - but it is 100% cross-platform!

doc/manual/style.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ providing documentation, either as part of the C code or stand-alone.
2727
Feedback would be welcome to improve the OpenOCD guidelines.
2828

2929
*/
30-
/** @page styletcl TCL Style Guide
30+
/** @page styletcl Tcl Style Guide
3131

32-
OpenOCD needs to expand its Jim/TCL Style Guide.
32+
OpenOCD needs to expand its Jim Tcl Style Guide.
3333

3434
Many of the guidelines listed on the @ref stylec page should apply to
35-
OpenOCD's Jim/TCL code as well.
35+
OpenOCD's Jim Tcl code as well.
3636

3737
*/
3838
/** @page stylec C Style Guide

0 commit comments

Comments
 (0)