#endif
#include "replacements.h"
-
+#include "target.h"
#include "command.h"
+#include "configuration.h"
#include "log.h"
#include "time_support.h"
int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
int handle_fast_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
+
+int run_command(command_context_t *context, command_t *c, char *words[], int num_words);
+
static void tcl_output(void *privData, const char *file, int line, const char *function, const char *string)
{
Jim_Obj *tclOutput=(Jim_Obj *)privData;
Jim_CreateCommand(interp, full_name, script_command, c, NULL);
free((void *)full_name);
-
/* accumulate help text in Tcl helptext list. */
Jim_Obj *helptext=Jim_GetGlobalVariableStr(interp, "ocd_helptext", JIM_ERRMSG);
if (Jim_IsShared(helptext))
if (context == NULL)
return ERROR_OK;
-
while(NULL != context->commands)
{
c = context->commands;
return ERROR_OK;
}
-
void command_output_text(command_context_t *context, const char *data)
{
if( context && context->output_handler && data ){
return retval;
}
-
int command_run_linef(command_context_t *context, char *format, ...)
{
int retval=ERROR_FAIL;
return retval;
}
-
-
void command_set_output_handler(command_context_t* context, int (*output_handler)(struct command_context_s *context, const char* line), void *priv)
{
context->output_handler = output_handler;
return ERROR_OK;
}
-
/* find full path to file */
static int jim_find(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
return JIM_OK;
}
-
-
static size_t openocd_jim_fwrite(const void *_ptr, size_t size, size_t n, void *cookie)
{
size_t nbytes;