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

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



> 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?

They're supposed to be.

> TRAPDEBUG prompt_bart_precmd precmd
> prompt_bart_precmd:1 Src/zsh:2 Src/zsh:9

So Src/zsh:9 calls precmd, Src/zsh:2 (precmd?) calls prompt_bart_precmd,
and prompt_bart_precmd:1 unwittingly calls TRAPDEBUG.

Maybe grabbing the name of the previous function from the funcstack
would be more useful.



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