99
Chapter 5: Using Debuggers
Using the Green Hills Debugger
command pane:
< filename
([DPSOH
Create a file with the following lines:
remote hpserv hplogic1
target cf proc=MPC505
_INIT_SP=0x10000
Save the file in the MULTI startup directory and name it hpserv.rc. To
run the script, enter the following command in the Debugger command
pane:
<hpserv.rc
When run, this script will:
•
Connect to the target through the emulation probe/module in a logic
analysis system frame called “hplogic1”.
•
Set the processor type to MPC505.
•
Initialize the stack pointer.
To perform common debugger tasks
•
To display registers, click the regs button in the Display window.
•
To set a breakpoint, right-click on the source code line where the
breakpoint is to be located.
•
To clear a breakpoint, right-click again on the source line.
•
To step through code, click next.
•
To run from the current PC, click go.
•
To toggle the display between source code and source code
interlaced with assembly code, click assem.
•
To load program symbols, reset the PC, reset the stack pointer,
Summary of Contents for 16610A
Page 13: ...Contents 11 Glossary Index ...
Page 14: ...12 Contents ...
Page 15: ...13 1 Installing the Emulation Probe ...
Page 44: ...42 Chapter 1 Installing the Emulation Probe Updating Emulation Probe Firmware ...
Page 45: ...43 2 Installing the Emulation Module ...
Page 64: ...62 Chapter 2 Installing the Emulation Module Preparing for a Debugger ...
Page 65: ...63 3 Connecting to a Target System ...
Page 74: ...72 Chapter 3 Connecting to a Target System Making the Target System Connection ...
Page 76: ...74 Chapter 3 Connecting to a Target System Making the Target System Connection ...
Page 77: ...75 4 Configuring the Emulation Probe Module ...
Page 91: ...89 5 Using Debuggers ...
Page 119: ...117 6 Solving Problems ...
Page 149: ...147 7 Specifications and Characteristics ...
Page 153: ...151 8 Service Information ...
Page 166: ...164 Index ...