Up: GEOS SDK TechDocs | Up | Prev: elist ... | Next: flagwin ...

fatalerr_auto_explain

var fatalerr_auto_explain [(0|1)]

Examples:

"var fatalerr_auto_explain 0"
Turn off automatic generation of the explanation for any fatal-error hit.

Determines if the "why" command will automatically provide you with an explanation of any fatal error you encounter. If non-zero, they will be provided whenever FatalError is hit.

fetch-optr

fetch-optr <handle> <offset>

Examples:

"fetch-optr $h $o.GI_comp.CP_firstChild"
Fetch the optr from the GI_comp.CP_firstChild field of the object at ^h$h:$o.

Extracts an optr from memory, coping with the data in the block that holds the optr not having been relocated yet.

fhandle

fhandle <handle id>

Examples: "fhandle 3290h"

Print out a file handle.

See Also: fwalk.

field

field <list> <field name>

Examples:

"field [value fetch ds:si MyBox] topLeft"
return the offset of the topLeft field in MyBox

Return the value for the field's offset in the structure.

See Also: value, pobject, piv.

fieldwin

fieldwin

Print the address of the target machine's current top-most field window.

find

find [-ir] <string> [<filename>]

Examples:

"find FileRead"
Find next occurrence of string "FileRead" in currently viewed file
"find FI_foo poof.goc"
find first occurrence of string "FI_foo" in file poof.goc.
"find -ir myobject"
case-insensitive reverse search for most recent occurrence of string "myobject" in currently viewed file

Finds a string in a file and brings the line with that string to the middle of Swat's source window.

find-opcode

find-opcode <addr> <byte>+

Locates the mnemonic for an opcode and decodesit. Accepts the address from which the opcode bytes were fetched, and one or more opcode bytes as arguments. Returns a list of data from the opcode descriptor:

{name length branch-type args modrm bRead bWritten inst}

length is the length of the instruction.

branch - type is one of:

1
none (flow passes to next instruction)
j
absolute jump
b
pc-relative jump (branch)
r
near return
R
far return
i
interrupt return
I
interrupt instruction

Any argument descriptor that doesn't match is to be taken as a literal. E.g. AX as a descriptor means AX is that operand.

modrm is the modrm byte for the opcode.

bRead is the number of bytes that may be read by the instruction, if one of its operands is in memory.

bWritten is the number of bytes that may be written by the instruction, if one of its operands is in memory.

inst is the decoded form of the instruction. If not enough bytes were given to decode the instruction, inst is returned as empty.

finish

finish [<frame num>]

Examples:

"finish"
finish executing the current frame
"finish 3"
finish executing up to the third frame

Finish the execution of a frame.

See Also: backtrace.

finishframe

finishframe [<frame-token>]

Examples:

"finishframe $cur"
Run the machine to continue until it has returned from a particular stack frame.

Allows the machine to continue until it has returned from a particular stack frame.

See Also: event, frame, finish.


Up: GEOS SDK TechDocs | Up | Prev: elist ... | Next: flagwin ...