02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

value = 0 = 0x0<br />

It is possible to select a specific demangler style by means of the Tcl variable<br />

shDemangleStyle. Three styles are currently available: gnu (the default), arm, and none<br />

(no demangling). For instance:<br />

-> ?set shDemangleStyle none<br />

none<br />

Demangling can be reached through the Tcl routine:<br />

demangle style symbol mode<br />

The symbol is demangled using the given style and according to the given mode, if possible.<br />

If the symbol is not understood by the demangler, symbol is returned unmodified. mode is 0<br />

for no demangling, 1 for short demangling, and 2 for full demangling.<br />

The shell always understands the gnu and arm styles. Other styles can be dynamically<br />

loaded to the shell with the -cplus option.<br />

-> ?demangle gnu getRegString__FPCcPcT1 2<br />

getRegString(char const *, char *, char *)<br />

-> ?demangle gnu getRegString__FPCcPcT1 1<br />

getRegString<br />

-><br />

WindSh Environment variables<br />

WindSh integrates an environment variables mechanism to configure the shell’s behavior.<br />

The shConfig( ) command allows you to display and set the controls that change the<br />

shell’s behavior. This command affects only instantiation of the shell where the command<br />

is applied. At startup WindSh begins by looking for a file called .wind/windsh.tcl under<br />

the home directory. If the file exists, the shell reads and executes its contents as Tcl<br />

expressions before beginning to interact. This file can be used to initialize WindSh<br />

environment variables.<br />

The following example shell initialization file turns off WindSh IO redirection and sets the<br />

Load path:<br />

# Turn Off WindSh IO redirection<br />

shConfig SH_GET_TASK_IO off<br />

# Set Load path<br />

shConfig LD_PATH<br />

"C:/ProjectX/lib/objR4650gnutest/;C:/ProjectY/lib/objR4650gnuvx/"<br />

DSM_HEX_MOD [on|off]<br />

This configuration parameter allows you to set the disassembling “symbolic + offset”<br />

mode to “on” or “off”. While set to “off”, the “symbolic + offset” address<br />

representation is turned on and addresses inside the disassembled instructions are<br />

given in terms of a “symbol name + offset”. If turned to “on”, these addresses are<br />

given their hexadecimal value.<br />

374

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!