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.

7<br />

Debugger<br />

Then select the breakpoint type from the Breakpoint Type list, and click the<br />

OK button.<br />

To delete a breakpoint, click on its name in the Hardware Breakpoints<br />

window, and then the Delete button. You can only delete hardware<br />

breakpoints set during the current CrossWind session.<br />

If the target agent is running in task mode, a hardware breakpoint is set on<br />

all the system tasks. If the agent is running in system mode, a hardware<br />

breakpoint is set on the system context.<br />

NOTE: CrossWind does not manage hardware breakpoints in the same manner as<br />

standard GDB breakpoints. The hardware breakpoint interface is provided as a<br />

simple means of setting hardware breakpoints on the target (which is why it is only<br />

possible to set hardware breakpoints on all the tasks or on the system context, and<br />

not only on the task to which the debugger is attached).<br />

7<br />

When a data access hardware breakpoint stops the program, the context icon<br />

indicates the line of code that has been executed. However, on some processors<br />

(such as the I960), a data access exception is generated only after the data has been<br />

accessed and the program counter has been incremented. For those processors,<br />

CrossWind marks the line after the one that has been executed when data<br />

hardware breakpoint was hit.<br />

Interrupt. Sends an interrupt to the task that the debugger is controlling.<br />

For example, if your program keeps running instead of following an<br />

expected path to a breakpoint, press this button to regain control and<br />

investigate. Pressing this button is equivalent to keying the interrupt<br />

character (usually CTRL+C).<br />

Steps to the next line of code. The precise effect depends on the style of<br />

program display you have selected. If the program-display area shows<br />

high-level source code only (the default), this button advances execution<br />

to the next line of source, like the step command. On the other hand, if the<br />

program-display panel shows assembler instructions (when either<br />

Assembly or Mixed selected from the Source menu, or execution is in a<br />

routine compiled with no debugging symbols), this button advances<br />

execution to the next instruction—the equivalent of the stepi or si<br />

command.<br />

Steps over a function call. This is a variant of the button: instead of<br />

stepping to the very next statement executed (which, in the case of a<br />

function call, is typically not the next statement displayed), this button<br />

steps to the next line on the screen. If there is no intervening function call,<br />

247

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

Saved successfully!

Ooh no, something went wrong!