diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2011-03-08 22:57:00 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2011-03-08 22:57:00 (GMT) |
commit | fb08c43317f6739787424b27b2978444412a8db8 (patch) | |
tree | b6be99dcea71575a9bee4300231364bcf6ad547a /generic/tclProc.c | |
parent | 0c8ce616494c90380d478f21982566d8fcdd2301 (diff) | |
parent | 9f187e2ec9103585d791beb29612cd032502c1c8 (diff) | |
download | tcl-fb08c43317f6739787424b27b2978444412a8db8.zip tcl-fb08c43317f6739787424b27b2978444412a8db8.tar.gz tcl-fb08c43317f6739787424b27b2978444412a8db8.tar.bz2 |
merge
FossilOrigin-Name: 514a4ba4fcec6683e73db1e7a2255d86505d6fca
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r-- | generic/tclProc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c index d33d063..bf46a5d 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -1769,6 +1769,7 @@ TclNRInterpProcCore( } #endif /*TCL_COMPILE_DEBUG*/ +#ifdef USE_DTRACE if (TCL_DTRACE_PROC_ARGS_ENABLED()) { int l = iPtr->varFramePtr->isProcCallFrame & FRAME_IS_LAMBDA ? 1 : 0; const char *a[10]; @@ -1798,6 +1799,15 @@ TclNRInterpProcCore( iPtr->varFramePtr->objc - l - 1, (Tcl_Obj **)(iPtr->varFramePtr->objv + l + 1)); } + if (TCL_DTRACE_PROC_ENTRY_ENABLED()) { + int l = iPtr->varFramePtr->isProcCallFrame & FRAME_IS_LAMBDA ? 1 : 0; + + TCL_DTRACE_PROC_ENTRY(l < iPtr->varFramePtr->objc ? + TclGetString(iPtr->varFramePtr->objv[l]) : NULL, + iPtr->varFramePtr->objc - l - 1, + (Tcl_Obj **)(iPtr->varFramePtr->objv + l + 1)); + } +#endif /* USE_DTRACE */ /* * Invoke the commands in the procedure's body. |