|
Hi,
I'm trying to get source level debugging to work for a C program on a V5R1
machine. I've been at it for awhile with no success. In checking the
manual, all I should have to do is to specify DBGVIEW other than *NONE, and
perhaps an OPTION such as *SHOWUSR. But it doesn't work for me. I always
get the 'source not available' message from STRDBG.
I must be making some simple error -- I just can't see what it is. If you
could give me some pointers, I would be grateful.
Here is how I create the C modules. Note that my source is on the IFS.
CRTCMOD MODULE(&LIB/&MODULE) SRCSTMF(&MODSRC) +
OUTPUT(*print) DBGVIEW(*ALL) DEFINE(STDC +
AS400) SYSIFCOPT(*IFSIO) OPTION(*SHOWUSR)
Here is how I create the program that I wish to debug:
CRTPGM PGM(&LIB/XMAKE) MODULE(INCLUDE LIST MAIN +
SUBS VAR WILD POPEN) ENTMOD(MAIN) +
DETAIL(*FULL)
Here is the error screen from STRDBG (And it's driving me crazy!):
Display Module Source
Program: XMAKE Library: RDUZENBURS Module: MAIN
(Source not available.)
Below is the relevant section of DSPPGM. Note that for the modules, it
indicates DEBUG is *YES, and OPTIMIZATION LEVEL is *NONE for each.
Program . . . . . . .
: XMAKE Library . . . . . . .
: RDUZENBURS
Owner . . . . . . . .
: RDUZENBURY
Program attribute . .
: CLE
Detail . . . . . . . .
: *BASIC
Program creation
information:
Program creation date/time . . . . . . . . . .
: 10/25/02 03:14:47
Type of program . . . . . . . . . . . . . . .
: ILE
Program entry procedure module . . . . . . . .
: MAIN
Library . . . . . . . . . . . . . . . . . .
: RDUZENBURS
Activation group attribute . . . . . . . . . .
: *NEW
Shared activation group . . . . . . . . . . .
: *NO
User profile . . . . . . . . . . . . . . . . .
: *USER
Use adopted authority . . . . . . . . . . . .
: *YES
Coded character set identifier . . . . . . . .
: 65535
Number of modules . . . . . . . . . . . . . .
: 7
Number of service programs . . . . . . . . . .
: 8
Number of unresolved references . . . . . . .
: 0
Number of copyrights . . . . . . . . . . . . . : 0
All creation data . . . . . . . . . . . . . . : *YES
Observable information compressed . . . . . . : *NO
Run time information compressed . . . . . . . : *NO
Allow update . . . . . . . . . . . . . . . . . : *YES
Allow bound *SRVPGM library name update . . . : *NO
Profiling data . . . . . . . . . . . . . . . . : *NOCOL
Teraspace storage enabled PEP . . . . . . . . : *NO
Teraspace storage enabled modules . . . . . . : *NONE
Storage model . . . . . . . . . . . . . . . .
: *SNGLVL
Program . . . . . . .
: XMAKE Library . . . . . . .
: RDUZENBURS
Owner . . . . . . . .
: RDUZENBURY
Program attribute . .
: CLE
Detail . . . . . . . .
: *MODULE
Creation Optimization
Debug
Module Library Attribute Date Level
Data
INCLUDE RDUZENBURS CLE 10/25/02 *NONE
*YES
LIST RDUZENBURS CLE 10/25/02 *NONE
*YES
MAIN RDUZENBURS CLE 10/25/02 *NONE
*YES
SUBS RDUZENBURS CLE 10/25/02 *NONE
*YES
VAR RDUZENBURS CLE 10/25/02 *NONE
*YES
WILD RDUZENBURS CLE 10/25/02 *NONE
*YES
POPEN RDUZENBURS CLE 10/25/02 *NONE
*YES
And here is a relevant section from the DSPMOD report for the main module:
Module . . . . . . . . . . . .
: MAIN Library . . . . . . . . . . .
: RDUZENBURS
Detail . . . . . . . . . . .
: *BASIC
Module Attribute . . . . . .
: CLE
Module
information:
Module creation date/time . . . . . . . . . . . . . . .
: 10/25/02 03:13:03
Source file . . . . . . . . . . . . . . . . . . . . . .
:
Library . . . . . . . . . . . . . . . . . . . . . . .
:
Source member . . . . . . . . . . . . . . . . . . . . .
:
Source file change date/time . . . . . . . . . . . . . .
:
Owner . . . . . . . . . . . . . . . . . . . . . . . . .
: RDUZENBURY
Coded character set identifier . . . . . . . . . . . . .
: 37
Text description . . . . . . . . . . . . . . . . . . . .
:
Creation data . . . . . . . . . . . . . . . . . . . . .
: *YES
Intermediate language data . . . . . . . . . . . . . . .
: *NO
Sort sequence table . . . . . . . . . . . . . . . . . .
: *HEX
Language identifier . . . . . . . . . . . . . . . . . .
: *JOBRUN
Optimization level . . . . . . . . . . . . . . . . . . .
: *NONE
Maximum optimization level . . . . . . . . . . . . . . . : *NOMAX
Debug data . . . . . . . . . . . . . . . . . . . . . . . : *YES
Compressed . . . . . . . . . . . . . . . . . . . . . . . : *NO
Program entry procedure name . . . . . . . . . . . . . . : _C_pep
Number of parameters . . . . . . . . . . . . . . . . . . : 0 255
Module state . . . . . . . . . . . . . . . . . . . . . . : *USER
Module domain . . . . . . . . . . . . . . . . . . . . . : *SYSTEM
Number of exported defined symbols . . . . . . . . . . .
: 11
Regards,
Rich
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.