User`s manual
Entering and Debugging Programs
2-8
2
The XON and XOFF characters in effect for the terminal port may
be entered to control the output from any debugger command, if
the XON/XOFF protocol is enabled (default). The characters
initialized by PPCBug are (you may change them with the PF
command):
Entering and Debugging Programs
There are various ways to enter a user program into system
memory for execution. One way is to create the program using the
Assembler/Disassembler, entering the program one source line at
a time. After each source line is entered, it is assembled and the
object code is loaded to memory. Refer to Chapter 4 for information
on using the PPCBug Assembler/Disassembler.
Another way is to download an object file from a host system. The
program must be in S-record format (refer to Appendix D) and may
have been assembled or compiled on the host system. Alternately,
you may create a program using the Assembler/Disassembler, and
store the program to the host using the DU command. A
communication link must exist between the host system and
PowerPC board port 1 (Refer to the board installation and use
manual). Later, download the file from the host to PowerPC board
memory with the LO command.
Once the object code has been loaded into memory, you can set
breakpoints if desired and run the code or trace through it.
System Call Routines in User Programs
Access to various debugger routines is provided via the System
Call Handler. This gives a convenient way of doing character
input/output and many other useful operations so that you do not
have to write these routines into the target code.
CTRL-s Wait: halt console output (XON)
CTRL-q Resume console output (XOFF).