diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-11 06:44:22 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-11 06:44:22 +0000 |
commit | efc6063df873b3419010ad66d183b997d52e630c (patch) | |
tree | a47636c216015a530f0fb3adc05bac8a6ad3f8d5 /src/openocd.c | |
parent | 2b3f4fd293398f1868f8bad864f68f6ffec12ada (diff) |
startup.tcl (former commands.tcl) is now embedded into OpenOCD executable.
git-svn-id: svn://svn.berlios.de/openocd/trunk@787 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/openocd.c b/src/openocd.c index 64965e37..eef6e60d 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -742,12 +742,15 @@ void initJim(void) interp->cb_fgets = openocd_jim_fgets; } +extern const unsigned char filedata_startup[]; + /* after command line parsing */ void initJim2(void) { - if (Jim_Eval(interp, "source [find tcl/commands.tcl]")==JIM_ERR) + if (Jim_Eval(interp, filedata_startup)==JIM_ERR) { - LOG_ERROR("Can not find tcl/commands.tcl - check installation"); + LOG_ERROR("Failed to run startup.tcl (embedded into OpenOCD compile time)"); + Jim_PrintErrorMessage(interp); exit(-1); } } |