]> git.sur5r.net Git - openocd/commit
jim: fix bug in tcl "puts"
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 18 May 2010 10:34:12 +0000 (12:34 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 18 May 2010 10:34:12 +0000 (12:34 +0200)
commitc86d7bdad4418f4fc3d81a68398187c6480316fa
treede53a57f6253528efc7763ab2432ac6a7792ca7d
parente804a34a632345effd706872605a0cc382a4da70
jim: fix bug in tcl "puts"

tcl "puts" didn't work because the logging code sensored strings
that did not include a '\n'. The correct thing is to sensor
empty strings, which are used to keep gdb connection alive.

The tcl "puts" code broke apart strings which do contain '\n' in
order to implement the -nonewline argument, which is how it
got hurt by the bug in log.c

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/helper/log.c