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

load filename serverFilename<br />

Use this version of the load command when the target server you are using is<br />

on a host with a different view of the file system from your CrossWind session.<br />

For example, in some complex networks different hosts may mount the same<br />

file at different points: you may want to download a file /usr/fred/applic.o<br />

which your target server on another host sees as /fredshost/fred/applic.o. 4<br />

Use the serverFilename argument to specify what file to download from the<br />

server’s point of view. (You must also specify the filename argument from the<br />

local point of view for the benefit of the debugger itself.)<br />

See 5.6 Object Module Load Path, p.196 for a more extended discussion of the<br />

same problem in the context of the shell.<br />

unload filename<br />

Undo the effect of load: remove a dynamically linked file from the target, and<br />

delete its symbols from the debugger session.<br />

The load and unload commands both request confirmation if the debugger is<br />

attached to an active task. You can disable this confirmation request, as well as all<br />

other debugger confirmation requests, with set confirm. See GDB User’s Guide:<br />

Controlling GDB.<br />

What Code to Display<br />

After a debugging session is underway, the program-display panel keeps pace<br />

with execution: when the program hits a breakpoint, the corresponding source is<br />

centered on the display panel, and each time you step or continue program<br />

execution, the display scrolls accordingly.<br />

When you begin your debugging session by attaching to an existing task, the<br />

display panel is filled immediately as a side effect of stopping the task. In other<br />

situations, it may be convenient to use one of the commands in this section for an<br />

initial display.<br />

list linespec<br />

Displays source code immediately in the program-display panel, with the<br />

display centered around the line you specify with the linespec argument. The<br />

most common forms for linespec are a routine name (which identifies the place<br />

where that subroutine begins executing) or a source-file line number in the<br />

4. See also the description of wtx-load-path-qualify in Extended Debugger Variables, p.259 for<br />

another way of managing how the debugger reports load pathnames to the target server.<br />

254

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

Saved successfully!

Ooh no, something went wrong!