Closed
Description
I did this
Attempted to build curl 8.10.1 on OS400 with source debug support both via DBGVIEW(*SOURCE) or DBGVIEW(*ALL).
I expected the following
To be able to debug the LIBCURL *SRVPGM, however the debugger states that the source code is missing.
The cause of this error is that the make_module() in initscript.sh prepends a pragma to cause all string literals to be handled as ASCII codepage 819 rather than EBCDIC codepage 37, it then builds a module based on this temporary source file. After the CRTCMOD call completes the temporary source file is removed.
The fix to this is when using a DEBUG value other than *NONE to keep the modified source file for use with the debugger.
curl/libcurl version
curl 8.10.1
operating system
OS/400 V7R4M0
Activity
OS400: don't delete source files when building with debug
OS400: don't delete source files when building with debug