Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jonrumsey opened this issue Oct 29, 2024 · 0 comments
Labels

Comments

@jonrumsey
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants