diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-16 10:23:16 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-16 10:23:16 +0000 |
commit | f806c8deabfcfa58340c3f1a136d1324faf51e17 (patch) | |
tree | 7d2059443260bcaba15f4bc86499daf1225002b6 /src | |
parent | cb90c97f335db6a0ac711712cc20e4715e78087b (diff) | |
download | riscv-openocd-f806c8deabfcfa58340c3f1a136d1324faf51e17.zip riscv-openocd-f806c8deabfcfa58340c3f1a136d1324faf51e17.tar.gz riscv-openocd-f806c8deabfcfa58340c3f1a136d1324faf51e17.tar.bz2 |
print out jim error message stack trace in expected order(look at any C++ or Java debugger for instance).
git-svn-id: svn://svn.berlios.de/openocd/trunk@813 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11994,7 +11994,7 @@ void Jim_PrintErrorMessage(Jim_Interp *interp) Jim_fprintf(interp,interp->cookie_stderr, " %s" JIM_NL, Jim_GetString(interp->result, NULL)); Jim_ListLength(interp, interp->stackTrace, &len); - for (i = 0; i < len; i+= 3) { + for (i = len-3; i >= 0; i-= 3) { Jim_Obj *objPtr; const char *proc, *file, *line; |