Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: functrace [was Re: funcstack and backtraces]



On Sep 17, 11:37pm, Clint Adams wrote:
}
} Operator precedence might be a good thing to pay attention to,
} though I don't know if it's your problem.

That does in fact seem to have stopped the crash.

There just seems to be one more problem:  It looks as if functrace and
funcstack are indexed in the opposite order from one another?  Would it
not be better if they were in parallel?  Or am I misreading this?

schaefer<506> TRAPDEBUG() { print $funcstack ; print $functrace }
TRAPDEBUG
Src/zsh:8
TRAPDEBUG precmd
Src/zsh:1 Src/zsh:9
TRAPDEBUG title precmd
title:1 Src/zsh:1 Src/zsh:9
TRAPDEBUG title precmd
title:2 Src/zsh:1 Src/zsh:9
TRAPDEBUG precmd
Src/zsh:1 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:1 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:2 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:6 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:7 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:8 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:11 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:12 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:1 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:15 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:12 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:19 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:20 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:23 Src/zsh:2 Src/zsh:9
TRAPDEBUG prompt_bart_precmd precmd
prompt_bart_precmd:26 Src/zsh:2 Src/zsh:9
TRAPDEBUG precmd
Src/zsh:2 Src/zsh:9
torch [TRAPDEBUG() { print $funcstack ; print $functrace }] /usr/src/local/zsh 
schaefer<507> 



Messages sorted by: Reverse Date, Date, Thread, Author