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 />

command controls context in the program-display panel, a button with<br />

this definition is a convenient way to get the display panel back to the<br />

location where your program is suspended, after scrolling elsewhere.<br />

After completing the form, press the OK box at the bottom; your new<br />

button appears at the right of the menu bar.<br />

CrossWind automatically saves your button definition by writing Tcl code<br />

at the end of your ~/.wind/crosswind.tcl initialization file. For example,<br />

the button definition above writes the following there:<br />

toolBarItemCreate Home button {ttySend "frame\n"}<br />

For buttons with more elaborate effects, consider first defining a new<br />

debugger command as described in 7.6 Tcl: Debugger Automation, p.266;<br />

then you can hook up the new command to a new button. You can also<br />

attach buttons to commands resulting from the GDB define command (see<br />

GDB User’s Guide: Canned Sequences of Commands).<br />

For examples of how to record your own button definitions in a<br />

CrossWind initialization file, see Tcl: “This” Buttons for C++, p.275.<br />

7.4.2 Debugger Command Panel: GDB<br />

CrossWind is designed to provide graphical access to those debugger actions that<br />

are best controlled graphically, but also to exploit the command-line GDB interface<br />

when that is the best way to perform some particular action. For example, the<br />

housekeeping of getting subroutines started necessarily involves typing<br />

subroutine names and argument lists. So that you do not have to switch back and<br />

forth between menus, buttons, and dialogs or forms for commands of this sort, the<br />

debugger exploits the command panel, which is inherently best suited to<br />

commands with typed arguments. The command panel provides full access to the<br />

GDB command language described in the GDB manual, GDB User’s Guide.<br />

NOTE: As a convenience, the GDB command interpreter repeats the previous<br />

command when you press ENTER (or RETURN) on an empty line, except for a few<br />

commands where it would be dangerous or pointless. See GDB User’s Guide: GDB<br />

Commands for more information. Press ENTER in the debugger only when you<br />

want to execute or repeat a command.<br />

The following sections summarize some particularly useful commands, and<br />

describe commands added by Wind River Systems that are not part of other<br />

versions of GDB.<br />

252

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

Saved successfully!

Ooh no, something went wrong!