02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

User’s Guide<br />

Use the -B option to select an alternative back end.<br />

If the target agent is connected through the wdbserial back end, target server options -d<br />

and -b allow the tty device and the serial line speed to be specified, respectively. The -hfc<br />

option activates hardware flow control on the serial link.<br />

If the target agent is connected through the wdbrpc backend, the -p option allows to<br />

specify the UDP port number.<br />

If the communication link between the target server and the target agent is slow, it may be<br />

necessary to adjust the back end timeout value (with the -Bt option), as well as the backend<br />

retry count (with the -Br option).<br />

Back ends may also provide their own set of options (see <strong>Tornado</strong> API Programmer’s Guide<br />

for details). The back end options are shown first. These options can be viewed with:<br />

tgtsvr -B bkendName -h<br />

The WDB requests can be logged on a file by using the -Bd option. The default behavior is<br />

to append log messages at the end of the log file (if it does not exists, it will be created). If<br />

the -Bm option is also specified, the file size will be limited to the given value, and written<br />

as a circular file: i.e. when this value is reached, the file is rewritten from the beginning. If<br />

the file exists, it will be erased.<br />

Object Module Management<br />

The target server may handle object modules from various format (currently, a.out COFF,<br />

ELF, SOM, and pecoff). The core file is analyzed in order to determine what object module<br />

format will be used for the working session. It is possible to bypass this determination<br />

with the -f option followed by a format name. Supported format names can be found in<br />

the resource file: $WIND_BASE/host/resource/target/architecturedb. The target server can<br />

be extended to support new Object Module Format (see the <strong>Tornado</strong> API Programmer’s<br />

Guide: Object Module Loader).<br />

Target Symbol Table<br />

The target server maintains (on the host) a symbol table for the target executable. It builds<br />

this symbol table from an input file called the core file. The symbols and memory locations<br />

obtained from this file are used to calculate relocation information when linking other<br />

user modules. The target server normally obtains the location of the core file from the<br />

target agent (in which case it is the file originally used as the executable for the agent<br />

itself). However, because the core file may no longer be in the location where it was used<br />

to load the agent, a path name for it can also be specified explicitly with the -c option (see<br />

Locating the Target Executable above for giving an alternate path name).<br />

It is also possible to prevent the target server from building the target symbol table from<br />

the core file with the -N option. If the target server is started with this option, the first file<br />

to be loaded must be a fully-linked object file (an object file with no external references).<br />

Any subsequent modules loaded may be relocatable; the server calculates relocation<br />

information by reference to that first loaded object file.<br />

358

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

Saved successfully!

Ooh no, something went wrong!