diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-16 07:22:17 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-16 07:22:17 +0000 |
commit | 396d73ad0cf2f12f2eac1af2ba82ff4878dd78de (patch) | |
tree | 3b70c162c0f912732a07e8a7ce5828c962144971 /src/openocd.c | |
parent | 8766d396176a277cf1af4ce9a0bbc20d62fe8eb5 (diff) | |
download | riscv-openocd-396d73ad0cf2f12f2eac1af2ba82ff4878dd78de.zip riscv-openocd-396d73ad0cf2f12f2eac1af2ba82ff4878dd78de.tar.gz riscv-openocd-396d73ad0cf2f12f2eac1af2ba82ff4878dd78de.tar.bz2 |
better error messages for target event scripts.
git-svn-id: svn://svn.berlios.de/openocd/trunk@810 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c index b36347c..2d7e774 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -734,6 +734,9 @@ void add_jim(const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj /* FIX!!! it would be prettier to invoke add_help_text... accumulate help text in Tcl helptext list. */ Jim_Obj *helptext=Jim_GetGlobalVariableStr(interp, "ocd_helptext", JIM_ERRMSG); + if (Jim_IsShared(helptext)) + helptext = Jim_DuplicateObj(interp, helptext); + Jim_Obj *cmd_entry=Jim_NewListObj(interp, NULL, 0); Jim_Obj *cmd_list=Jim_NewListObj(interp, NULL, 0); |