User`s guide
Recording and Playing Back dbx Input and Output
29
Recording Input
Use the record input command to start an input recording session. Once you
start an input recording session, all commands to dbx are copied to the
specified file. If the specified file already exists, dbx appends the input to the
existing file. You can start and run as many simultaneous dbx input
recording sessions as you need.
Each recording session is assigned a number when you begin it. Use this
number to reference the recording session with the unrecord command
described in “Ending a Recording Session” on page 29.
After you end the input recording session, use the command file with the
playback input or pi commands to execute again all the commands saved to
the file. See “Playing Back Input” on page 30.
For example, to save the recorded input in a file called script, enter:
(dbx) record input script
[4] record input script (0 lines)
If you do not specify a file to record input, dbx creates a temporary dbx file in
the/tmp directory. The name of the temporary file is stored in the dbx variable
$defaultin. You can display the temporary filename using the print command:
(dbx) print $defaultin
Because the dbx temporary files are deleted at the end of thedbx session, use
the temporary file to repeat previously executed dbx commands in the
current debugging session only. If you need a command file for use in
subsequent dbx sessions, you must specify the filename when you invoke
record input. If the specified file exists, the new input is appended to the file.
Ending a Recording Session
To end input or output recording sessions, use the unrecord command.
unrecord session1 [, session2 ...]
Turns off the specified recording session(s) and closes the
file(s) involved.
unrecord all Turns off all recording sessions and closes all files involved.