User`s manual

Initializing a Debugging Environment
Motorola Debugging C and Assembly Code 3-3
Anytime you want to repeat that sequence of logged commands, from the File menu,
choose Macro. A dialogue box appears for you to indicate which file you want to execute.
From the text-based, command-line interface, you can also save a sequence of commands
in a log file. You type the
log command with two parameters: the option c to indicate
that you want to log only commands and the argument of a file name for the log file. With
a third option, you can also indicate whether you want to overwrite an existing file or
append new commands to an existing file, as in Example 3 -1.
To reuse such a command log file later, simply type the name of the log file on the
command line. (In the graphic user interface, the command line is located in the Command
window.) If you have difficulty with this step, check the answers to the FAQs about
command log files on page 5-3.
Example 3 -1. Logging Commands to a File for Reuse
> log c mycommands.cmd -a ; appends commands to mycommands.cmd
> log c mycommands.cmd -o ; overwrites mycommands.cmd with new commands
3.1.4 Logging a Session for Later Review
In addition to logging commands for later reuse, you can also log the entire contents of a
session. You might want to log the contents of a session for review later. You would not
execute a session log file, as it contains displayed data in addition to executable
commands.
To log a session in the graphic user interface, from the File menu, choose Log,andthen
select Session. A dialogue box appears for you to indicate where you want to save the file
containing the session.
To stop logging a session, from the File menu, choose Close. A dialogue box appears for
you to indicate which log to close.
From the text-based, command-line interface, you can also save a session in a log file.
Type the
log command with the option s (to indicate that you want to log a session) and
with the optional argument of a file name for the log file. With a third option, you can also
indicate whether you want to overwrite an existing file (option -
o) or append new contents
to an existing file (option -
a).