P

This is the uppercase `P'.

Format: P [pr=num] [subcommand]

Used exclusively during multi-process debugging. If this command is given by itself, it lists all process slots in use. This command sends the commands given for subcommand to the process in MULTI's internal process slot number num. For example P pr=1 b toggles the state of the b flag in process number one.

The following is a list of subcommands:
Sub-command Meaning
b
Toggles breakpoint inheritance after forking. If true, children of the current process inherit all breakpoints set at the time of the fork.
c
Toggles flag causing children to be debugged. If true, children of the current process are added to the list of processes under control of MULTI.
e
Toggles flag causing children to stop upon execution of the exec system call. This acts as if a breakpoint were encountered at the first instruction of routine main in the exec'd program.
f
Toggles flag causing children to stop upon execution of the fork system call. This acts as if a breakpoint were encountered immediately following the fork. This normally means you are in the middle of the library routine fork.
k
Toggles flag causing tasks to be debugged.
t
Toggles flag causing MULTI to stop upon task-creation.

After a fork or exec of a process, MULTI prints a message indicating that this has happened, provided that the system variable _NOTIFY is set appropriately. See _NOTIFY.

The following subcommands are deprecated in this version, and were left in for compatibility purposes. The commands that supersede them are given.
Deprecated sub-commands
Sub-command Meaning
s num
Sends signal num to the current process. Equivalent to the signal command. See signal.
P num
Attaches to the existing process, a process whose ID is num. Equivalent to the command attach.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.