How does z/OS Debugger locate the C/C++ .mdbg file?
For the following conditions, z/OS® Debugger can
obtain debug information and source from a module map (.mdbg) file:
- You do one of the following tasks:
- You or your site specifies YES for the EQAOPTS
MDBG
command and, for environments that support environment variables, you do not set the environment variable EQA_USE_MDBG to NO. - You or your site specifies or defaults to NO for the
EQAOPTS
MDBG
command but, for environments that support environment variables, you override that option by setting the environment variable EQA_USE_MDBG to YES.
- You or your site specifies YES for the EQAOPTS
- You compile your programs with z/OS XL C/C++, Version 1.10 or later
z/OS Debugger might
read the .mdbg file more than once, but it always reads this file
from the same data set. After z/OS Debugger locates
this file and validates its contents with the load module being debugged,
you cannot redirect z/OS Debugger to search
a different file. z/OS Debugger searches
for the .mdbg file based on the input from the following commands,
user exit, or environment variable, in the following order:
- The EQAUEDAT user exit, specifying function code 37.
- If you do not write the EQAUEDAT user exit or the user exit cannot
find the file, the default data set name, which is
userid.mdbg(load_module_or_DLL_name)
, or, in UNIX System Services,./load_module_or_DLL_name.mdbg
.
- The
SET MDBG
command - The
SET DEFAULT MDBG
command - The EQAMDBG DD statement.
- The EQA_MDBG_PATH environment variable.
To learn more about the DEBUG
compiler option,
the dbgld command, and the CDADBGLD utility, see z/OS XL C/C++ User's
Guide.