The section tvscript Command Syntax discussed the command-line options used when invoking the
tvscript command. You can also place commands in a file and provide them to
tvscript using the
-script_file command-line option. Using a script file supports the use of Tcl to create more complex actions when events occur. The following sections describe the functions that you can use within a CLI file.
Registers a procedure handler to call when the action point associated with actionpoint_id is hit. This
actionpoint_id is the value returned from the
tvscript_create_actionpoint routine. The value of
actionpoint_handler is the string naming the procedure.
When tvscript calls an action point handler procedure, it passes one argument. This argument contains a list that you must convert into an array. The array indices are as follows:
event—The event that occurred, which is the action point
process_id—The ID of the process that hit the action point
thread_id—The ID of the thread that hit the action point
actionpoint_id—The ID of the action point that was hit
actionpoint_source_loc_expr—The initial source location expression used to create the action point
Sets a breakpoint at the line specified by source_loc_expr or an absolute address. For example:
When tvscript calls an event handler procedure, it passes one argument to it. This argument contains a list that you must convert into an array.
event—The event, which is set to
error
process_id— The ID of the process that hit the action point
thread_id—The ID of the thread that hit the action point
error_message—A message describing the error that occurred
event—The event, which is set to
actionpoint
process_id—The ID of the process that hit the action point
thread_id—The ID of the thread that hit the action point
actionpoint_id—The ID of the action point that was hit
actionpoint_source_loc_expr—The initial source location expression used to create the action point