diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-08-21 18:03:01 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-08-21 18:03:01 +0000 |
commit | 6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd (patch) | |
tree | 5597e80a02d420f2ec6543f6dff0e21e14064b1b /Src/hashtable.c | |
parent | 07fd604718b0b2202808c121f7bbcb4dce5c9ae5 (diff) | |
download | zsh-6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd.tar.gz zsh-6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd.tar.xz zsh-6f3ff6b653ca5e6f528bc46ec6295cb6d263a9fd.zip |
30633: "functions -T" only traces marked function, not called functions
Diffstat (limited to 'Src/hashtable.c')
-rw-r--r-- | Src/hashtable.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/hashtable.c b/Src/hashtable.c index be71a1cc9..b472e40b9 100644 --- a/Src/hashtable.c +++ b/Src/hashtable.c @@ -923,12 +923,13 @@ printshfuncnode(HashNode hn, int printflags) printf("%c undefined\n\t", hashchar); else t = getpermtext(f->funcdef, NULL, 1); - if (f->node.flags & PM_TAGGED) + if (f->node.flags & (PM_TAGGED|PM_TAGGED_LOCAL)) printf("%c traced\n\t", hashchar); if (!t) { - char *fopt = "Utkz"; + char *fopt = "UtTkz"; int flgs[] = { - PM_UNALIASED, PM_TAGGED, PM_KSHSTORED, PM_ZSHSTORED, 0 + PM_UNALIASED, PM_TAGGED, PM_TAGGED_LOCAL, + PM_KSHSTORED, PM_ZSHSTORED, 0 }; int fl;; |