summaryrefslogtreecommitdiffstats
path: root/tests/trace.test
Commit message (Collapse)AuthorAgeFilesLines
* 3484621 Invalidate bytecode when exec traces are added/removed from compiled ↵dgp2012-02-061-0/+33
| | | | cmd.
* Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | more harm than good. Purged them.
* * tests/trace.test: Backport some tests.dgp2007-08-141-1/+27
|
* * generic/tclBasic.c (TEOVI): fix por possible leak of a CommandMiguel Sofer2006-11-041-1/+19
| | | | | | | | | in the presence of execution traces that delete it. * generic/tclBasic.c (TEOVI): * tests/trace.test (trace-21.11): fix for [Bug 1590232], execution traces may cause a second command resolution in the wrong namespace.
* * generic/tclCmdMZ.c: Stop some interference between enter tracesdgp2006-04-111-1/+38
| | | | * tests/trace.test: and enterstep traces. [Bug 1458266]
* * generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBALdgp2006-02-281-1/+35
| | | | | | * tests/parse.test: evaluations act the same as [uplevel #0] * tests/trace.test: evaluations, even when execution traces or invocations of [::unknown] are present. [Bug 1439836].
* * tests/trace.test (trace-34.5): [Bug 1047286], added a secondMiguel Sofer2005-11-181-2/+15
| | | | | test illustrating the role of "ns in callStack" in the ns's visibility during deletion traces.
* * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-181-1/+22
| | | | | | | | * generic/tclCmdMZ.c (TraceCommandProc): * generic/tclInt.h (NS_KILLED): * generic/tclNamesp.c (Tcl_DeleteNamespace * tests/namespace.test (namespace-7.3-6): * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342].
* * tests/trace.test (trace-13.2-4): added tests to detect leak, see [BugMiguel Sofer2005-11-071-2/+56
| | | | 1348775].
* * generic/tclInt.h:Miguel Sofer2005-11-041-3/+3
| | | | | | | * generic/tclNamesp.c: * generic/tclVar.c: fix for [Bugs 1338280/1337229]. Thanks Don. * tests/trace.test: fix duplicate test numbers
* fix new test trace-18.4 [Bug 1338280]Miguel Sofer2005-10-291-6/+9
|
* * generic/tclCmdMZ.c (TraceVarProc): [Bug 1337229], partialMiguel Sofer2005-10-291-1/+18
| | | | | | | | | fix. Insure that a second call with TCL_TRACE_DESTROYED does not lead to a second call to Tcl_EventuallyFree(). It is still true that that second call should not happen, so the bug is not completely fixed. * tests/trace.test (test-18.3-4): added tests for bugs #1337229 and 1338280.
* typodgp2005-07-261-2/+2
|
* * generic/tclNamesp.c (TclTeardownNamespace): Re-ordering so thatdgp2005-07-261-1/+12
| | | | | * tests/trace.test (trace-34.4): command delete traces fire while the command still exists. [Bug 1047286]
* * generic/tclBasic.c: Made the walk of the active trace list awaredgp2005-06-211-1/+17
| | | | | | * generic/tclCmdMZ.c: of the direction of trace scanning, so the * generic/tclInt.h: proper correction can be made. [Bug 1224585] * tests/trace.test (trace-34.2,3):
* * generic/tclBasic.c (Tcl_DeleteTrace): Added missing walk of thedgp2005-06-211-1/+18
| | | | | * tests/trace.test (trace-34.1): list of active traces to cleanup references to traces being deleted. [Bug 1201035]
* * generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which faileddgp2004-11-151-1/+8
| | | | | | * tests/trace.test (trace-33.1): to permit a variable trace created with [trace variable] to be destroyed with [trace remove]. Thanks to Keith Vetter for the report.
* * generic/tclBasic.c (CallCommandTraces): Added safety bitdgp2003-09-291-13/+16
| | | | | | | | * tests/trace.test: masking to prevent any of the bit values TCL_TRACE_*_EXEC from leaking into the flags field of any Command struct. This does not fix [Bug 811483] but helps to contain some of its worst symptoms. Also backported the corrections to test trace-28.4 from Vince Darley.
* * generic/tclCmdMZ.c (): Fixed [Bug 807243] wheredgp2003-09-241-1/+37
| | | | | | * tests/trace.test (trace-31,32.*): the introspection results of both [trace info command] and [trace info execution] were getting co-mingled. Thanks to Mark Saye for the report.
* Removed test number dups [Bugs 710322, 710327, 710349, 710363]dkf2003-03-271-13/+12
|
* * generic/tclBasic.c: Changed [trace add command] so that 'rename' Kevin B Kenny2003-02-031-11/+16
| | | | | | | | | | callbacks get fully qualified names of the command. [Bug 651271]. ***POTENTIAL INCOMPATIBILITY*** * tests/trace.test: Modified the test cases for [trace add command] to expect fully qualified names on the 'rename' callbacks. Added a case for renaming a proc within a namespace. * doc/trace.n: Added language about use of fully qualified names in trace callbacks.
* execution trace, command trace and stringObj bug fixesvincentdarley2003-01-171-30/+99
|
* 3 small fixesvincentdarley2002-11-131-4/+155
|
* execution trace fixvincentdarley2002-10-151-1/+34
|
* * generic/tclBasic.c (TclRenameCommand,CallCommandTraces):dgp2002-09-061-1/+8
| | | | | | * tests/trace.test (trace-27.1): Corrected memory leak when a rename trace deleted the command being traced. Test added. Thanks to Hemang Lavana for the fix. [Bug 604609]
* Fix for [Bug 582522] - aliases now fire execution traces on the targetMiguel Sofer2002-07-291-1/+28
| | | | command. Optimisation of alias invocation.
* * generic/tclBasic.c (CallCommandTraces): delete traces now receiveMiguel Sofer2002-07-181-6/+6
| | | | the FQ old name of the command. [Bug 582532] (Don Porter)
* * doc/CrtTrace.3: Added TIP#62 implementation of commandhobbs2002-06-171-8/+397
| | | | | | | | | | | | | | | * doc/trace.n: execution tracing [FR #462580] (lavana). * generic/tcl.h: This includes enter/leave tracing as well * generic/tclBasic.c: as inter-procedure stepping. * generic/tclCmdMZ.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclVar.c: * tests/trace.test:
* TIP#102 implementation: 'trace list' becomes 'trace info'dkf2002-06-141-27/+27
|
* * generic/tclCmdMZ.c (Tcl_TraceObjCmd, TraceVarProc)hobbs2002-03-291-1/+12
| | | | | | | | | (TraceCommandProc, TclTraceCommandObjCmd): corrected potential double-free of traces on variables by flagging in Trace*Proc that it will free the var in case the eval wants to delete the var trace as well. [Bug #536937] Also converted Tcl_UntraceVar -> Tcl_UntraceVar2 and Tcl_Eval to Tcl_EvalEx in Trace*Proc for slight efficiency improvement.
* restored consistency in refCount accounting by array traces [Bug #4484339]Miguel Sofer2001-12-071-2/+14
|
* new algorithm for [array get], safe when there are traces that modify the ↵Miguel Sofer2001-12-051-1/+29
| | | | array [Bug #449893].
* another fix for test trace-8.8dgp2001-11-211-1/+2
|
* * corrected test trace-8.8 for Bug 219393dgp2001-11-211-2/+2
|
* Changes due to TIP#68; memory handling in variable traces is now correct!dkf2001-11-191-1/+22
|
* Corrected test numbers in tests/trace.testMiguel Sofer2001-08-131-121/+121
|
* insure that [array] traces work for undefined vars [bug: 449094]Miguel Sofer2001-08-101-1/+6
|
* * tests/trace.test: Extended array tracing tests.ericm2000-08-251-8/+27
| | | | | | | | | | * doc/trace.n: Clarified information about when array traces will be fired. * generic/tclVar.c (Tcl_ArrayObjCmd): Corrected call to CallTraces (for TCL_TRACE_ARRAY) to only be called when the variable is either an array or is undefined, to ensure that array traces do not fire for scalar variables.
* * doc/trace.n: Updated documentation for new syntax; flagged oldericm2000-08-251-225/+582
| | | | | | | | | | | | | | | | | | | | | | | | | | syntax as deprecated; added documentation for command rename/delete traces and variable array traces. * tests/trace.test: Updated tests for new trace syntax; new tests for command rename/delete traces; new tests for array traces. * generic/tclVar.c: Support for new trace syntax; support for TCL_TRACE_ARRAY. * generic/tclStubInit.c: * generic/tclDecls.h: * generic/tcl.decls: Stub functions for command rename/delete traces. * generic/tcl.h: * generic/tclInt.h: * generic/tclBasic.c: Support for command traces. * generic/tclCmdMZ.c (TclTraceVariableObjCmd): Patched to support new [trace] syntax: trace {add|remove|list} {variable|command} name ops command Added support for command traces (rename, delete operations). Added support for TCL_TRACE_ARRAY at Tcl level (array operation for variable traces).
* Removed dead space at end of file.ericm2000-07-311-13/+1
|
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* Fixed style problems in many of the test files.rjohnson1999-06-261-2/+2
| | | | Fixed bug in pkg.test where defs.tcl was still being used.
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-5/+23
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+966