Skip to content
Snippets Groups Projects
Commit 21362389 authored by oharboe's avatar oharboe
Browse files

zy1000 1.49 snapshot

git-svn-id: svn://svn.berlios.de/openocd/trunk@1374 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 3fb2c6a6
Branches
No related tags found
No related merge requests found
......@@ -303,3 +303,11 @@ add_help_text srst_deasserted "Overridable procedure run when srst deassert is d
proc srst_asserted {} {
puts "Sensed nSRST asserted."
}
# catch any exceptions, capture output and return output
proc capture_catch {a} {
catch {
capture {uplevel $a}
} result
return $result
}
......@@ -99,14 +99,6 @@ proc encode {a} {
return [string map {\n <br/> { } {&nbsp;} \t {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} > &gt; < &lt; / &#47;} $a]
}
# catch any exceptions, capture output and return it
proc capture_catch {a} {
catch {
capture {uplevel $a}
} result
return $result
}
proc first_flash_base {} {
set t [lindex 0 [ocd_flash_banks]]
return $t(base)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment