HP 68000 Series User Manual page 192

Debugger/simulator
Table of Contents

Advertisement

Chapter 4: Viewing Code and Data
Using Simulated I/O
The debugger uses an internal table to determine where the streams should be
opened. Each of the names (stdin, stdout, and stderr) has an associated
translation name:
The translation name contains the name of a file to use when the target
requests opening of any of these stdio streams. By default, stdin_name
contains /dev/simio/keyboard (the keyboard), and translations stdout_name and
stderr_name contain /dev/simio/display (the standard I/O (stdio) screen).
These translations are used only when opening the streams. They cannot be
used to redirect the streams after they have been opened. The target program
must be rerun from the startup address to allow the stdio streams to be
reopened if the translations have been changed.
Examples
To redirect the standard input file to the keyboard, the standard output file to
the display, and the standard error file to file '/users/project/errorfile':
Debugger Execution IO_System Stdio_Redirect
"/dev/simio/keyboard","/dev/simio/display",
"/users/project/errorfile"
Program Pc_Reset
To redirect the standard input file to 'temp.dat', the standard output file to
'cmdout.dat', and the standard error file to file 'errorlog.err':
Debugger Execution IO_System Stdio_Redirect
"temp.dat","cmdout.dat","errorlog.err"
Program Pc_Reset
170
stderr
stdin_name
stdout_name
stderr_name

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents