diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-02-17 11:54:30 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-02-17 11:54:30 +0000 |
commit | 2136238908840dd230854cb5d78b8da181ca7340 (patch) | |
tree | 579abd802ac115944e8a85c9bd1f2e59d57a31f6 /src/helper/startup.tcl | |
parent | 3fb2c6a6dd2ac88cfe88e0ccc14e8a650fa755ca (diff) | |
download | riscv-openocd-2136238908840dd230854cb5d78b8da181ca7340.zip riscv-openocd-2136238908840dd230854cb5d78b8da181ca7340.tar.gz riscv-openocd-2136238908840dd230854cb5d78b8da181ca7340.tar.bz2 |
zy1000 1.49 snapshot
git-svn-id: svn://svn.berlios.de/openocd/trunk@1374 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/startup.tcl')
-rw-r--r-- | src/helper/startup.tcl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl index 41137f1..eb965e0 100644 --- a/src/helper/startup.tcl +++ b/src/helper/startup.tcl @@ -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 +} |