]> git.sur5r.net Git - openocd/commitdiff
print out jim error message stack trace in expected order(look at any C++ or Java...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 16 Jul 2008 10:23:16 +0000 (10:23 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 16 Jul 2008 10:23:16 +0000 (10:23 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@813 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jim.c

index be53233c16524a10ec9af069e4fc3027d8fbcbcb..c1434dbb0bf7dcbd87c61b1113db9a69d9dac23d 100644 (file)
--- a/src/jim.c
+++ b/src/jim.c
@@ -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;