summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-08 22:57:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-08 22:57:00 (GMT)
commit63572ac935b2a961b916e80da1efb67e2dfb5cf5 (patch)
treeb6be99dcea71575a9bee4300231364bcf6ad547a /generic/tclProc.c
parentf1e390fc29f2b6d8bb7d6157c6a70ce42cbba762 (diff)
parenta89d11864715181fa74000e72b692e93faa1b7d5 (diff)
downloadtcl-63572ac935b2a961b916e80da1efb67e2dfb5cf5.zip
tcl-63572ac935b2a961b916e80da1efb67e2dfb5cf5.tar.gz
tcl-63572ac935b2a961b916e80da1efb67e2dfb5cf5.tar.bz2
merge
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c10
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.