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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to