]> git.sur5r.net Git - openocd/commit
encapsulate and re-use log capture, retval setup
authorZachary T Welch <zw@superlucidity.net>
Wed, 25 Nov 2009 03:13:03 +0000 (19:13 -0800)
committerZachary T Welch <zw@superlucidity.net>
Wed, 25 Nov 2009 18:29:05 +0000 (10:29 -0800)
commit9e5d8a94f1ea28ee6764511f0cb3c38b22ca8b51
treebd05ae2cf89cb820bfda154142a6c737ab621dd7
parent910bb250c479b4de9c30231e1a090e9a2d647434
encapsulate and re-use log capture, retval setup

Factors log capture while running script commands, eliminating
duplicated code between script_command and jim_capture.  Factors
setting a command's Jim "retval" into a new helper as well.

Using these new helpers in the new unknown command handler's
fixes possible regressions caused by these bits being missing.
src/helper/command.c