diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-27 10:16:42 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-28 13:00:39 -0800 |
commit | fd343bea7f11796a9fba77158fe84b0ccaac1a4b (patch) | |
tree | 99cb58bf5dab59f06afa5cf929d3cc3bc9d907f8 /tcl/bitsbytes.tcl | |
parent | 933b4579f06d25e349e6648ec4aff114e634164d (diff) | |
download | openocd_libswd-fd343bea7f11796a9fba77158fe84b0ccaac1a4b.tar.gz openocd_libswd-fd343bea7f11796a9fba77158fe84b0ccaac1a4b.tar.bz2 openocd_libswd-fd343bea7f11796a9fba77158fe84b0ccaac1a4b.tar.xz openocd_libswd-fd343bea7f11796a9fba77158fe84b0ccaac1a4b.zip |
refactor command mode detection
Splits the check for a command's ability to run into a helper.
This also fixes a bug whereby commands that specified COMMAND_EXEC
were allowed to run during the configuration stage. This allowed
problematic commands to be called before 'init', defeating the intention
of specifying that command mode. With this change, the run_command()
helper denies access to handlers that should run only after 'init'
during the configuration stage.
Diffstat (limited to 'tcl/bitsbytes.tcl')
0 files changed, 0 insertions, 0 deletions