diff --git a/HISTORY b/HISTORY index 933ceb9..99448c6 100755 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Jan. 31 2016 +Ignored first frame name with the TRACE command + Jan. 30 2016 Added a TRACE command to the shell Fixed an infinity loop bug in the mb_debug_get_stack_trace function diff --git a/output/my_basic_mac b/output/my_basic_mac index d33eda8..78a863e 100755 Binary files a/output/my_basic_mac and b/output/my_basic_mac differ diff --git a/shell/main.c b/shell/main.c index df34d1f..ebb93e7 100755 --- a/shell/main.c +++ b/shell/main.c @@ -1151,12 +1151,15 @@ static int trace(struct mb_interpreter_t* s, void** l) { mb_assert(s && l); + memset(frames, 0, _countof(frames)); + mb_check(mb_attempt_open_bracket(s, l)); mb_check(mb_attempt_close_bracket(s, l)); mb_check(mb_debug_get_stack_trace(s, l, frames, _countof(frames))); + ++p; while(*p) { _printf("%s", *p); ++p;