24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

C Debug comm<strong>and</strong> reference<br />

C Debug comm<strong>and</strong> reference UM-415<br />

The table below provides a brief description of the comm<strong>and</strong>s that can be invoked when C<br />

Debug is running. Follow the links to the <strong>ModelSim</strong> <strong>SE</strong> Comm<strong>and</strong> Reference for complete<br />

comm<strong>and</strong> syntax.<br />

Comm<strong>and</strong> Description Corresponding menu comm<strong>and</strong><br />

bd (CR-70) deletes a previously set C breakpoint right click breakpoint in Source<br />

window <strong>and</strong> select Remove Breakpoint<br />

bp (CR-75) -c sets a C breakpoint click the desired line number in the<br />

Source window<br />

change (CR-81) changes the value of a C variable none<br />

describe (CR-147) prints the type information of a C select the C variable name in the Source<br />

variable<br />

window <strong>and</strong> select Tools > Describe or<br />

right click <strong>and</strong> select Describe.<br />

disablebp (CR-148) disables a previously set C breakpoint right click breakpoint in Source<br />

window <strong>and</strong> select Disable Breakpoint<br />

enablebp (CR-158) enables a previously disabled C right click breakpoint in Source<br />

breakpoint<br />

window <strong>and</strong> select Enable Breakpoint<br />

examine (CR-162) prints the value of a C variable select the C variable name in the Source<br />

window <strong>and</strong> select Tools > Examine or<br />

right click <strong>and</strong> select Examine<br />

gdb dir (CR-183) sets the source directory search path for<br />

the C debugger<br />

none<br />

pop (CR-219) moves the specified number of call<br />

frames up the C callstack<br />

push (CR-237) moves the specified number of call<br />

frames down the C callstack<br />

run (CR-252) -continue continues running the simulation after<br />

stopping<br />

run (CR-252) -finish continues running the simulation until<br />

control returns to the calling function<br />

show (CR-267) displays the names <strong>and</strong> types of the local<br />

variables <strong>and</strong> arguments of the current C<br />

function<br />

step (CR-272) single step in the C debugger to the next<br />

executable line of C code; step goes into<br />

function calls, whereas step -over does<br />

not<br />

tb (CR-274) displays a stack trace of the C call<br />

stack<br />

none<br />

none<br />

click the run -continue button on the<br />

Main or Source window toolbar<br />

Tools > C Debug > Run > Finish<br />

Tools > C Debug > Show<br />

click the step or step -over button on the<br />

Main or Source window toolbar<br />

Tools > C Debug > Traceback<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!