aboutsummaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-27 06:58:45 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-27 06:58:45 +0000
commitb754eac35ac15b1dd7dc07ac31efd4329856a626 (patch)
tree8b9a6b01e203be8cb12794ab1a77bbbb39f77ca0 /src/openocd.c
parenta78762e786bd21d6fc855e23bf87036369582316 (diff)
downloadriscv-openocd-b754eac35ac15b1dd7dc07ac31efd4329856a626.zip
riscv-openocd-b754eac35ac15b1dd7dc07ac31efd4329856a626.tar.gz
riscv-openocd-b754eac35ac15b1dd7dc07ac31efd4329856a626.tar.bz2
hooks to enable experimentation with scripting language support. Reduces patch size, but has no effect on OpenOCD otherwise.
git-svn-id: svn://svn.berlios.de/openocd/trunk@733 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 946cd93..a9d38c9 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -154,6 +154,12 @@ void unlockBigLock()
{
}
+/* Hook to add scripting language */
+int jim_command(command_context_t *context, char *line)
+{
+ LOG_ERROR("Syntax error");
+ return ERROR_COMMAND_SYNTAX_ERROR;
+}
int main(int argc, char *argv[])
{