Tornado API Reference : GUI Tcl Library (UNIX)

crosswindTclApi

NAME

crosswindTclApi - Tcl exposures for debugger GUI

TCL PROCEDURES

downtcl - request evaluation of an expression in the debugger's interpreter
sourceContextDisplay - move the source context to a new location
sourceContextForget - forget cached information about a source file
sourceContextForgetAll - forget all cached information about source files
sourceRedisplay - redisplay the source window
markSet - set a mark on a source line
markInfo - return information about a mark
markDelete - delete a mark
markGoto - move the source context to the position of a mark
markList - enumerate all marks
selection - return the text of the current selection in the code window

DESCRIPTION

This library contains implementations of Tcl commands specific to CrossWind.

SEE ALSO

crosswindTclApi


GUI Tcl Library (UNIX) : Tcl Procedures

downtcl

NAME

downtcl - request evaluation of an expression in the debugger's interpreter

LOCALE

CrossWind

SYNOPSIS

downTcl [-noresult] expr...

DESCRIPTION

The supplied expression expr is sent to the debug engine, where it is evaluated as a Tcl expression in the debugger's Tcl interpreter. The result of that expression is received from the debugger and becomes the result of the downtcl expression itself unless -noresult is specified.

RETURNS

The result of evaluating the expression or nothing.

CAVEATS

Unless -noresult is specified, the CrossWind process will wait indefinitely for the debugger to return the result of the evaluation. During this time, the CrossWind user interface will not be responsive.

SEE ALSO

crosswindTclApi


GUI Tcl Library (UNIX) : Tcl Procedures

sourceContextDisplay

NAME

sourceContextDisplay - move the source context to a new location

LOCALE

CrossWind

SYNOPSIS

sourceContextDisplay path line [addr]

DESCRIPTION

This command causes CrossWind to present the file named by path in the source window, positioned at line. In mixed source/assembly mode, addr can further refine the presentation by specifying a particular address. If the address is not known, it may be omitted or specified as -1. If the source file and line number are not known, they may be specified as nil and 0 respectively; then a pure assembly listing will be presented in the display centering around the supplied address.

SEE ALSO

crosswindTclApi, sourceRedisplay, markSet


GUI Tcl Library (UNIX) : Tcl Procedures

sourceContextForget

NAME

sourceContextForget - forget cached information about a source file

LOCALE

CrossWind

SYNOPSIS

sourceContextForget filename

DESCRIPTION

This command causes CrossWind to forget any information it has cached about the given source file. It is used internally to discard source files whenever the debugger loads a new object module.

SEE ALSO

crosswindTclApi


GUI Tcl Library (UNIX) : Tcl Procedures

sourceContextForgetAll

NAME

sourceContextForgetAll - forget all cached information about source files

LOCALE

CrossWind

SYNOPSIS

sourceContextForgetAll

DESCRIPTION

This command discards all cached information about all source files. It is used internally whenever the debugger connects to a new target.

SEE ALSO

crosswindTclApi, sourceContextForget


GUI Tcl Library (UNIX) : Tcl Procedures

sourceRedisplay

NAME

sourceRedisplay - redisplay the source window

LOCALE

CrossWind

SYNOPSIS

sourceRedisplay

DESCRIPTION

This command refreshes the source display. It is used internally to manually request a redisplay of the source whenever the source display mode is changed.

SEE ALSO

crosswindTclApi, sourceContextDisplay


GUI Tcl Library (UNIX) : Tcl Procedures

markSet

NAME

markSet - set a mark on a source line

LOCALE

CrossWind

SYNOPSIS

markSet name type path line addr

DESCRIPTION

This command makes a new "mark" in the source window. Marks are displayed in the left side of the source window. Marks are associated with a particular line of source and are given names. If markSet is applied to a mark name that already exists, the mark is moved. Two marks on the same source line must have different names. If the exact machine address is known, it can be given; if not, it may be omitted or specified as -1. The mark type describes what icon will be used to draw it. Icons for CrossWind marks are found in the directory:

$WIND_BASE/host/resource/bitmaps/CrossWind/marks

SEE ALSO

crosswindTclApi, sourceContextDisplay, markDelete, markGoto, markList


GUI Tcl Library (UNIX) : Tcl Procedures

markInfo

NAME

markInfo - return information about a mark

LOCALE

CrossWind

SYNOPSIS

markInfo name

DESCRIPTION

This command returns information about a named mark: the type, path, line and address information established for the mark by the markSet command are returned. If the named mark does not exist, an empty string is returned.

RETURNS

The mark information or an empty string.

SEE ALSO

crosswindTclApi, markDelete, markGoto, markSet


GUI Tcl Library (UNIX) : Tcl Procedures

markDelete

NAME

markDelete - delete a mark

LOCALE

CrossWind

SYNOPSIS

markDelete name

DESCRIPTION

This command deletes the named mark, which was established with markSet, removing it from the source display.

SEE ALSO

crosswindTclApi, markSet


GUI Tcl Library (UNIX) : Tcl Procedures

markGoto

NAME

markGoto - move the source context to the position of a mark

LOCALE

CrossWind

SYNOPSIS

markGoto name

DESCRIPTION

This command causes the source window to display the source centered around the mark.

SEE ALSO

crosswindTclApi, markSet


GUI Tcl Library (UNIX) : Tcl Procedures

markList

NAME

markList - enumerate all marks

LOCALE

CrossWind

SYNOPSIS

markList

DESCRIPTION

This command returns a list of the names of all existing marks.

RETURNS

A list of all marks.

SEE ALSO

crosswindTclApi, markSet


GUI Tcl Library (UNIX) : Tcl Procedures

selection

NAME

selection - return the text of the current selection in the code window

LOCALE

CrossWind

SYNOPSIS

selection

DESCRIPTION

This command returns the text that is selected in the source window. The selected source is shown in reverse video. If no source is selected, this command returns an empty string.

SEE ALSO

crosswindTclApi