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.

1<br />

Overview<br />

Thus the shell can be used to call run-time system functions, call any application<br />

function, examine and set application variables, create new variables, examine and<br />

modify memory, and even perform general calculations with all C operators.<br />

For even more versatile shell scripting and target control, the <strong>Tornado</strong> shell<br />

includes a complete Tcl interpreter as well as the C interpreter. The shell also<br />

provides the essential symbolic debugging capabilities, including breakpoints,<br />

single-stepping, a symbolic disassembler, and stack checking.<br />

The shell interpreter maintains a command history and permits command-line<br />

editing. The shell can redirect standard input and standard output, including input<br />

and output to the virtual I/O channels supported by the target agent.<br />

As a convenience, there is some overlap between WindSh and CrossWind, the<br />

<strong>Tornado</strong> debugger. (Conversely, the CrossWind debugger provides access to all<br />

shell built-in commands.) From the shell, you can perform the following<br />

debugging activities:<br />

■<br />

■<br />

■<br />

Display system and task status.<br />

Generate a symbolic disassembly of any loaded module.<br />

Set breakpoints and single-step specific tasks, even in shared code.<br />

■<br />

Set breakpoints and single-step the system as a whole, even in interrupt<br />

service routines.<br />

As with all <strong>Tornado</strong> tools, these facilities provide symbolic references wherever<br />

possible, using the symbol table managed by the target server.<br />

The shell is described in 5. Shell.<br />

1<br />

CrossWind Debugger<br />

The remote source-level debugger, CrossWind, is an extended version of the GNU<br />

source-level debugger (GDB). The most visible extension to GDB is a<br />

straightforward graphical interface. CrossWind also includes a comprehensive Tcl<br />

scripting interface that allows you to create sophisticated macros or extensions for<br />

your own debugging requirements. For maximum flexibility, the debugger console<br />

window synthesizes both the GDB command-line interface and the facilities of<br />

WindSh, the <strong>Tornado</strong> shell.<br />

7

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

Saved successfully!

Ooh no, something went wrong!