diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-15 11:32:22 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-15 11:32:22 +0000 |
commit | a98e1094a0443fac738e86ba314bc69879f84db8 (patch) | |
tree | 6bf85665cacf282340cc348a230cfceaae3f1f60 /src/openocd.c | |
parent | 47d044934727c3d5a57658ddd324b407dd73860a (diff) | |
download | riscv-openocd-a98e1094a0443fac738e86ba314bc69879f84db8.zip riscv-openocd-a98e1094a0443fac738e86ba314bc69879f84db8.tar.gz riscv-openocd-a98e1094a0443fac738e86ba314bc69879f84db8.tar.bz2 |
sync up to tap_xxx rename + add with-ioutil for standalone openocd implemetnations
git-svn-id: svn://svn.berlios.de/openocd/trunk@1243 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c index 12d219b..014433c 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -118,6 +118,8 @@ static int log_target_callback_event_handler(struct target_s *target, enum targe return ERROR_OK; } +int ioutil_init(struct command_context_s *cmd_ctx); + /* OpenOCD can't really handle failure of this command. Patches welcome! :-) */ int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { @@ -130,6 +132,13 @@ int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **arg atexit(exit_handler); +#if BUILD_IOUTIL + if (ioutil_init(cmd_ctx) != ERROR_OK) + { + return ERROR_FAIL; + } +#endif + if (target_init(cmd_ctx) != ERROR_OK) return ERROR_FAIL; LOG_DEBUG("target init complete"); |