On 5 July 2010 11:48, Paul Gilmartin <[email protected]> wrote:

> Are you saying that it is unsupported for a module entered by ATTACH
> to exit via R14?  Or merely that it is not guaranteed that a module
> can CLC 0(2,14),=x'0A03' to determine that it was entered by ATTACH?

It is not guaranteed in two senses: first there is no difference in
linkage between an ATTACHed and a LINKed or XCTLed program; in normal
circumstances all will be entered with R14 pointing to the SVC 3 in
CVTEXIT. Second, if your program finds itself running under TSO TEST,
and perhaps some other debuggers, R14 will point to an SVC 97
(X'0A61') rather than an SVC 3. This is true both for the first module
invoked from TEST, and for a module ATTACHed when running under TEST.
As deprecated as TSO TEST may be, it is still wrong to design a
program to make important and non-debugging-related decisions by
looking for an SVC 3.

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to