Collect output from openocd commands into openocd_output local variable
git-svn-id: svn://svn.berlios.de/openocd/trunk@820 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
+6
-2
@@ -95,12 +95,16 @@ add_help_text help "Tcl implementation of help command"
|
||||
|
||||
#a bit of backwards compatibility
|
||||
proc openocd_throw {cmd} {
|
||||
return [eval $cmd]
|
||||
set openocd_output ""
|
||||
eval $cmd
|
||||
return $openocd_output
|
||||
}
|
||||
|
||||
#a bit of backwards compatibility
|
||||
proc openocd {cmd} {
|
||||
return [eval $cmd]
|
||||
set openocd_output ""
|
||||
eval $cmd
|
||||
return $openocd_output
|
||||
}
|
||||
|
||||
# If a fn is unknown to Tcl, we try to execute it as an OpenOCD command
|
||||
|
||||
Reference in New Issue
Block a user