forked from auracaster/openocd
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
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user