-
Notifications
You must be signed in to change notification settings - Fork 10
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
check/improve compatibility with GnuCOBOL 3.1.1+ #97
Comments
How can I instruct GC to remove intermediate comment lines?
|
That are no comment lines but instructions (ending up in the final binary) about the positions. If this is really not possible then those directives may be removed by |
Can you check the master against your test cases? I've tested it on dockerized 3.1.1. and 2.2. |
I'd but I've not dived into extension writing or even compiling yet, so you'd have to upload your vsix, possibly here. Do you think this extension could benefit of the info GDB has with "knowing" the COBOL source and line later`and not match the lines for 3.1.1+ itself? Should I open a new issue for that? |
Note: if you take the NIST-test sample given in the issue's start post and check that it works with containerized 3.1.1 then that's fine and I'd consider it worthy for a new release. |
launch.json: "docker": "olegkunitsyn/gnucobol:2.2" generates coverage for C
launch.json: "docker": "olegkunitsyn/gnucobol:3.1" generates coverage for C and GnuCOBOL
How can I disable GnuCOBOL part via the command line? |
What do you mean by "the GnuCOBOL part"? |
ping @OlegKunitsyn |
I meant GnuCOBOL coverage part. Nevermind. |
What I meant here: do we need the internal match at all with an up-to-date version or could this be "deactivated" in this case? |
Please confirm that this issue still remains in your test cases since v2.31.32. I can't reproduce. |
The issue "it doesn't work" is not reproducible any more.
The question is: can we disable the recalculation "COBOL source line X C source line Y" if we see COBOL line numbers? This would have the benefit that we need less parsing of the C source (it is still needed because of the fields matching, but I hope to resolve that later from the GnuCOBOL side). |
If the variables, stepping and coverage were fixed (for me, yes) then I see no reason to keep this issue open. |
I totally agree to keep backwards compatibility. It possibly wasn't that clear what I asked: not remove the mapping code but place it within an `if (!gdb_reports_cobol_already)`
|
I've tested the most recent version with Arnold Trembley's 3.1.1-package and stepping did not work correctly.
Tested program: NC104A.CBL
I only removed
-free
(I "may" have mentioned that I think neither the in-debug-auto-"task-step" compile nor the default of-free
seems useful to me) and left all other settings at default.The debugging starts correctly, variables look fine, the stepping works only partially (often skips multiple lines).
Note: 3.1.1 has a quite different codegen, and if not explicit asked for also generated COBOL line comments (so GDB already does know which COBOL line it operates on) - so if it works as expected on non-win32 it seems reasonable to still adjust the part that tries to match COBOL and C lines.
For improved field knowledge with (and especially without)
-fdump
#92 may also be useful.The text was updated successfully, but these errors were encountered: