Skip to content

Building curl on OS400 with DEBUG *SOURCE doesn't allow debug as module source deleted #15445

Description

@jonrumsey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions