| >DBG> GO
>
> Enter "TEST111111", if you hit the "BREAK" this is not correct
> behavior. Correct behavior is to miss this break point
> altogether, the application will prompt at the bottom of the
> screen.
I duplicated what you are seeing here with
VAX COBOL V5.4
OpenVMS VAX V7.0
I also did
SET BREAK %LINE 2340
and that break also showed the paragraph label that is really at line
2344.
The workaround to use right now is the one you identified:
> Workaround is to use:
>
> DBG> SET BREAK %LINE 2344
We'll post a note here when we understand what is causing this label to
be tied to line 2340 instead of line 2344.
|
| From: SPSEG::SDT_ACE "02-Apr-1997 1505 -0500" 2-APR-1997 15:07:43.28
To: @PTT$MAIL:DEC_COBOL-FYI
CC:
Subj: Closed Case 71GB40036 (PM-04/01/1008-enginering escallation for george nemitz)
[This update was sent from BLOTCKY on 2-APR-1997 15:04:58.11]
[Problem submitter responsible for next action, Closure Pending]
Hello,
The situation reported in this case is a restriction. It should not be
a CLD. For this reason, I'm putting it in the SOLVE state.
I have attached an update from COBOL Engineering, which describes why
this is a restriction.
Regards,
Pamela Blotcky
DTN 381-0918
_______________________________________________________________________________
VAX COBOL is an optimizing compiler. The linkage of debug information for
source lines and labels and generated code is approximate (not exact) because
of the impact of various optimizations. Fortunately in this case, one of the
ways to set a break at the desired line produces the debug results that the
customer wants.
>4. Configuration
> o Operating System and Version.
>
> Customer run VAX/VMS 6.1, but problem can
> be duplicated on VMS 6.2
>
> o Layered Product/Component Name and Version.
>
> COBOL 5.3-40
I verified back through VAX COBOL V5.0 (May-1992) that VAX COBOL has been
producing the same debug behavior you are seeing today with this particular
program. I also duplicated the same debug behavior that the customer is seeing
with VAX COBOL V5.4 on OpenVMS VAX V7.0.
With DEC COBOL, which has even more aggressive optimizations that make
debugging of the optimized code even more challenging, there is a compile
option to disable some of the optimizations during debugging, but VAX COBOL
does not currently have an option to disable code generation optimizations.
For future versions of VAX COBOL, we will look into possible options we could
provide to disable some optimizations to make the debugging of the partially
optimized code less difficult than what is available today with VAX COBOL.
|