|
GEOS SDK TechDocs
|
|
symbolCompletion ...
|
twalk ...
text-fixup
-
Run geos under swat, run swat on the development system
-
Run GeoWrite
-
Open the GeoWrite file that needs fixing
-
Set the breakpoint in swat:
patch text::CalculateRegions
=> text-fixup
This will set a breakpoint at the right spot
-
Turn on the error-checking code in swat:
ec +text
-
Enter a <space> into the document. This forces recalculation which will cause
CalculateRegions()
to be called which will cause text-fixup to be called.
If it worked, this code should patch together the file. If it's not, you'll get a FatalError right now.
-
Turn off the ec code and disable the fixup breakpoint.
ec none
dis <breakpoint number>
continue
-
Delete the space and save the file.
To do another file, you can just enable the breakpoint once the new file is open and turn on the ec code.
Helps fix up trashed GeoWrite documents.
thaw
thaw [<patient>]
thaw :<n>
thaw <patient>:<n>
thaw <id>
Examples:
-
"thaw"
- Thaw the current thread.
-
"thaw term"
- Allows the application thread for "term" to run normally
-
"thaw :1"
- Allows thread #1 of the current patient to run normally
-
"thaw 16c0h"
- Allows the thread whose handle is 16c0h to run normally.
Thawing a thread restores its priority to what it was before the thread was frozen.
See Also: freeze.
threadname
threadname <id>
Examples:
-
"threadname 21c0h"
-
Returns the name of the thread whose handle id is 21c0h.
Given a thread handle, produces the name of the thread, in the form <patient>:<n>
If the handle is not one of those swat knows to be for a thread, this returns the string "unknown."
See Also: thread,
patient.
threadstat
threadstat
Examples:
-
"threadstat"
Provides information about all threads and various thread queues and synchronization points in the system.
See Also: ps.
timebrk
timebrk <start-addr> <end-addr>+
timebrk del <timebrk>+
timebrk list
timebrk time <timebrk>
timebrk reset <timebrk>
Examples:
-
"timebrk LoadResourceData -f"
-
Calculate the time required to process a call to
LoadResourceData()
.
-
"timebrk time 2"
-
Find the amount of time accumulated for timing breakpoint number 2.
-
"timebrk reset 2"
-
Reset the counter for timebrk number two to zero.
-
"timebrk list"
-
Print a list of the set timing breakpoints and their current counts and time.
This command manipulates breakpoints that calculate the amount of time executing between their starting point and a specified ending point. The breakpoints also record the number of times their start is hit, so you can figure the average amount of time per hit.
-
You can specify a place at which timing should end either as an address or as "-f". If you use "-f", timing will continue until the finish of the routine at whose start you've placed the breakpoint. Such a breakpoint may only be set at the start of a routine, as the stub hasn't the wherewithal to determine what the return address is at an arbitrary point within the function.
-
You may specify more than one ending point. Timing will stop when execution reaches any of those points.
-
When you've set a timing breakpoint, you will be returned a token of the form "timebrk<n>", where <n> is some number. You use this token, or just the <n>, if you're not a program, wherever <timebrk> appears in the Usage description, above.
See Also: brk,
cbrk,
tbrk.
timingProcessor
var timingProcessor [i86|i88|i286|V20]
The processor for which to generate cycle counts.
See Also: cycles.
tmem
tmem
Examples:
-
"tmem"
- turn on memory tracing.
Trace memory usage.
The tmem command catches calls to DebugMemory, printing out the parameters passed (move, free, realloc, discard, swapout, swapin, modify).
top-level
top-level
Examples:
-
"top-level"
- Begin reading and interpreting Tcl commands in a nested interpreter.
This is the top-most read-eval-print loop of the Swat Tcl interpreter.
This command will only return if the user issues the "break" command. Otherwise it loops infinitely, reading and executing and printing the results of Tcl commands.
tundocalls
tundocalls [-acPCrR]
Examples:
-
"tundocalls -a" Print out all text undo calls
-
"tundocalls -r" Print run undo calls
-
"tundocalls -R" Print replace undo calls
-
"tundocalls -c" Print info when undo information is created
-
"tundocalls -cP" Print info about para attributes only
-
"tundocalls -cC" Print info about char attributes only
-
"tundocalls"
Prints out information about each undo call made to the text object.
See Also: ptext,
showcalls.
|
GEOS SDK TechDocs
|
|
symbolCompletion ...
|
twalk ...