about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-09-17 19:28:45 +0000
committerClint Adams <clint@users.sourceforge.net>2006-09-17 19:28:45 +0000
commita7c0640c0a3b9ce7290b1c78a08eec7ed330ca67 (patch)
treeb356f534a24781a75400c382b3ad1377c86b51c3 /Src/exec.c
parent4f11c3b8e356ea835f7791e9de4b73fd23d5daa9 (diff)
downloadzsh-a7c0640c0a3b9ce7290b1c78a08eec7ed330ca67.tar.gz
zsh-a7c0640c0a3b9ce7290b1c78a08eec7ed330ca67.tar.xz
zsh-a7c0640c0a3b9ce7290b1c78a08eec7ed330ca67.zip
22728: $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 57c0822fb..f9866235d 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -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;