Using the debugger, Option. use the – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 285

Using the PCBridge Software
Appendix D
D-7
For example, a build list (BUILD.LST) might look like Figure D.5.
Figure D.5
Build List
PCBridge Microware’s PC hosted OS-9/680x0 Development System
commands
keyword
user–defined name
optional description
JOE USER’S BUILD LIST
TAG bld_hello
build hello world program
xcc hello.c -ixg
pause
TAG make_r0
- assemble r0 device descriptor
cd \os9c\io
make r0
pause
TAG make_r1
- assemble r1 device descriptor
cd \os9c\io
r68 -C -E -O=\usr\joeuser\r1 r1.a >errors
type errors
pause
TAG makerom
- assemble OS-9 ROM with ROMBUG
cd \pcportpk\rom
make rombug
pause
TAG test1
- build data generator program
xcc test1.c -gix
xcc test1.r test2.r test3.r -n=test1
pause
This example describes a PCBridge session in which the C program
HELLO.C and its symbol file HELLO.STB are transferred to an OS-9
system and the debugger is invoked.
To use the debugger on an OS-9 module, you must compile the module
with the
-g
option. This creates the symbol file necessary for debugging.
The symbol file is created in the same directory as the compiled program
module. By default, the C compiler command line specified in the
PCBCC.BAT file does not use the
-g
option. Use the
C)
Configuration Options
and
B) C Compiler Options
to add
-g
to the command line. It should be the same as the following line:
xcc -ix %1 -g
Next, use the steps provided in the previous example to compile the
file HELLO.C.
You must be in OS-9 Terminal mode to use the debug utility through the
PCBridge software. You must also be logged onto the OS-9 system with
the same user ID as your GRPUSER DOS environment variable.
Using the Debugger