about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-10-29 19:25:58 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-10-29 19:25:58 +0000
commit9a4a3d183f7ceeef5fd7100869979fcc77bf5c41 (patch)
treed2280fef9c0b56dd3b0392a07df2b872a66ccf8f /Src/exec.c
parent473e48d33e25ab58f5efd938c662c7f6163dbfc8 (diff)
downloadzsh-9a4a3d183f7ceeef5fd7100869979fcc77bf5c41.tar.gz
zsh-9a4a3d183f7ceeef5fd7100869979fcc77bf5c41.tar.xz
zsh-9a4a3d183f7ceeef5fd7100869979fcc77bf5c41.zip
Merge 22728 and 22734: $functrace parameter for function backtraces.
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 7335ac7e8..c69730f88 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3618,6 +3618,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;