Download NightView User`s Guide - Concurrent Software Portal

Transcript
NightView User’s Guide
Solution:
In the Debug Window, you should click on the Resume button.
In the dialogue I/O area, NightView responds with something like the following:
1. Parent sleeping for
2. Parent sleeping for
Child got ordinal signal
3. Parent sleeping for
Child got ordinal signal
4. Parent sleeping for
Child got ordinal signal
5. Parent sleeping for
Child got ordinal signal
Child got ordinal signal
2 seconds
2 seconds
#1
2 seconds
#2
2 seconds
#3
2 seconds
#4
#5
Because of the ignore count on breakpoint 8, the parent process sent only five out of ten
signals to the child process before the breakpoint was hit. The source code is written so
that the lines that begin with a number come from the parent process, and the lines that
begin with the word "Child" come from the child process.
The debug status area and the debug group area show the status Stopped at breakpoint 8. This means that the process hit breakpoint number 8.
For the C program, NightView displays something like the following in the debug message area:
local:15625: at Breakpoint 8, 0x10002950 in
parent_routine(
pid_t child_pid = 13504, int total_sig
= 10)
at parent.c line 16
$3: total_sig = 10
For the Fortran program, NightView displays something like the following in the debug
message area:
local:15625: at Breakpoint 8, 0x105d0 in parent_routine(
INTEGER child_pid / 13504 / ) at
parent.f line 17
$3: total_sig = 10
For the Ada program, NightView displays something like the following in the debug message area:
local:15625: at Breakpoint 8, 0x30324 in parent_routine(
child_pid : IN integer = 13504,
total_sig : IN integer = 10) at
parent.a line 15
$3: total_sig = 10
Initial lines show where execution stopped. One line shows the value of total_sig
from the print command attached to breakpoint 8.
Note that the order of the displayed lines may vary.
5-28