1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

22728: $functrace parameter for function backtraces.

This commit is contained in:
Clint Adams 2006-09-17 19:28:45 +00:00
parent 4f11c3b8e3
commit a7c0640c0a
6 changed files with 49 additions and 1 deletions

View file

@ -3798,6 +3798,8 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval)
}
#endif
fstack.name = dupstring(name);
fstack.caller = dupstring(oargv0 ? oargv0 : argzero);
fstack.lineno = lineno;
fstack.prev = funcstack;
funcstack = &fstack;