|
From: Mark O. <ma...@od...> - 2017-03-22 15:02:54
|
I recently noticed that my TCL file is now failing to log my internal debug
statements to a file. I tracked it down to this:
global g_logfh
set fname "/tmp/usertcl-$BOARD-$DAP_SERNO.log"
if {[catch {set g_logfh [open $fname w]} errmsg]} {
set g_logfh -1
}
I'm catching the error but the open call is failing stating, 'invalid
command name "open"'. This used to work and I haven't changed my TCL code
in ages. I didn't notice when (OpenOCD version) it started failing but I
think that TCL's open command should work.
Thoughts?
- Mark
|