diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2010-06-18 01:33:22 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-18 08:06:19 +0200 |
commit | 3f9d377ce788365844f9225064cb9b0f0b4542ef (patch) | |
tree | 420b9bf054763392e325611cfadbac896e2cc7c5 | |
parent | 127f9da4fe0a3e2eaa86c5cd32bb45b6a7083171 (diff) | |
download | openocd+libswd-3f9d377ce788365844f9225064cb9b0f0b4542ef.tar.gz openocd+libswd-3f9d377ce788365844f9225064cb9b0f0b4542ef.tar.bz2 openocd+libswd-3f9d377ce788365844f9225064cb9b0f0b4542ef.tar.xz openocd+libswd-3f9d377ce788365844f9225064cb9b0f0b4542ef.zip |
reverse order of Jim stack trace output
The stack traces makes much more sense this way.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
-rw-r--r-- | src/helper/jim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c index 7fdf52c5..071e5575 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -12291,7 +12291,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 = len-3; i >= 0; i-= 3) { + for (i = 0; i < len; i += 3) { Jim_Obj *objPtr=NULL; const char *proc, *file, *line; |