jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / helper / startup.tcl
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Defines basic Tcl procs that must exist for OpenOCD scripts to work.
4 #
5 # Embedded into OpenOCD executable
6 #
7
8 # Try flipping / and \ to find file if the filename does not
9 # match the precise spelling
10 proc find {filename} {
11 if {[catch {ocd_find $filename} t]==0} {
12 return $t
13 }
14 if {[catch {ocd_find [string map {\ /} $filename} t]==0} {
15 return $t
16 }
17 if {[catch {ocd_find [string map {/ \\} $filename} t]==0} {
18 return $t
19 }
20 # make sure error message matches original input string
21 return -code error "Can't find $filename"
22 }
23 add_usage_text find "<file>"
24 add_help_text find "print full path to file according to OpenOCD search rules"
25
26 # Find and run a script
27 proc script {filename} {
28 uplevel #0 [list source [find $filename]]
29 }
30 add_help_text script "filename of OpenOCD script (tcl) to run"
31 add_usage_text script "<file>"
32
33 # Run a list of post-init commands
34 # Each command should be added with 'lappend post_init_commands command'
35 lappend _telnet_autocomplete_skip _run_post_init_commands
36 proc _run_post_init_commands {} {
37 if {[info exists ::post_init_commands]} {
38 foreach cmd $::post_init_commands {
39 eval $cmd
40 }
41 }
42 }
43
44 # Run a list of pre-shutdown commands
45 # Each command should be added with 'lappend pre_shutdown_commands command'
46 lappend _telnet_autocomplete_skip _run_pre_shutdown_commands
47 proc _run_pre_shutdown_commands {} {
48 if {[info exists ::pre_shutdown_commands]} {
49 foreach cmd $::pre_shutdown_commands {
50 eval $cmd
51 }
52 }
53 }
54
55 #########

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)