GEOS SDK TechDocs
|
|
5 Essential Commands
This section covers the features of Swat that make it easier to use when debugging an application.
brk list
if that was the most recent command that began with "b".Swat Display 3-14 Command Correction Using ^
(geos:0) 185 => wurds Error: invoked "wurds", which isn't a valid command name
(geos:0) 186 => ^u^o words Addr: +0 +2 +4 +6 +8 +a +c +e 4b4bh: e800 01b1 0e00 60f6 0016 9800 6e02 a900
(geos:0) 187 => ddwords Error: invoked "ddwords", which isn't a valid command name
(geos:0) 188 => ^d dwords Addr: +0 +4 +8 +c 4b59h: 1d0aa900 001c400d 294bd000 6c0a8000
print
or
pobj
. The elements in the history can be accessed by typing
@<number>
where the number argument is the number of the item in the history. These elements can replace a full address expression (except constants) and are often used when traversing through fields of a previously printed structure. The default history keeps track of the last 50 items. (See The Address History
.)Swat Display 3-15 The Address History
(geos:0) 8 => gentree -i
GenPrimaryClass (@1, ^l44a0h:001eh) "MESS #1"
GenViewClass (@2, ^l44a0h:0020h)
GenValueClass (@3, ^l44a0h:0026h)
GenValueClass (@4, ^l44a0h:0028h)
(geos:0) 9 => pinst @3
class = ui::dgroup::GenValueClass
master part: Gen_offset(53) -- ui::GenValueInstance
@5: {ui::GenValueInstance (^h17568:1170)+53} = {
GenInstance GenValue_metaInstance = {
MetaBase Gen_metaInstance = {
ClassStruct _far *MB_class = 3573h:1867h (motif::dgroup::OLScrollbarClass)
}
LinkPart GI_link = {
void _optr LP_next = ^l44a0h:0028h (ui::dgroup::GenValueClass@6244h:02deh)
}
CompPart GI_comp = {
void _optr CP_firstChild = null
}
void _lptr GI_visMoniker = null
KeyboardShortcut GI_kbdAccelerator = {
KS_PHYSICAL = 0
KS_ALT = 0
KS_CTRL = 0
KS_SHIFT = 0
KS_CHAR_SET = 0
KS_CHAR = C_NULL
}
GenAttrs GI_attrs = {}
GenStates GI_states = {GS_USABLE, GS_ENABLED}
}
WWFixed GVLI_value = {0.000000}
WWFixed GVLI_minimum = {0.000000}
WWFixed GVLI_maximum = {0.007324}
WWFixed GVLI_increment = {0.000229}
GenValueStateFlags GVLI_stateFlags = {GVSF_INDETERMINATE}
GenValueDisplayFormat GVLI_displayFormat = GVDF_INTEGER
void _optr GVLI_destination = ^l44a0h:0020h (ui::dgroup::GenViewClass@6244h:01aah)
word GVLI_applyMsg = 681ah
}
(geos:0) 10 =>
pobject
command can be specified
pobj
,
pob
, or even
po
, but not by just
p
because there are other commands (such as
print
) beginning with the letter
p
. To get a list of all commands with a given prefix, type the prefix at the Swat prompt, then type Ctrl-D. To automatically complete a command name use the
Escape key (if the prefix is unambiguous) or
Ctrl-] to scroll through the list of possible command completions.Swat Display 3-16 An Initialization File
srcwin 15 regwin save 500 patient-default mess1 run
This example shows a sample initialization file which sets up windows to display the source code and current register values, set the length of the save buffer to 500 lines, and continue running swat until the mess1 application has been loaded, at which point execution will automatically stop.
GEOS SDK TechDocs
|
|
5 Essential Commands