-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add a feature to build a binary debug database at compile time #130
base: gcos4gnucobol-3.x
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## gcos4gnucobol-3.x #130 +/- ##
=====================================================
- Coverage 65.74% 65.55% -0.20%
=====================================================
Files 32 33 +1
Lines 59092 59267 +175
Branches 15575 15599 +24
=====================================================
+ Hits 38849 38851 +2
- Misses 14262 14430 +168
- Partials 5981 5986 +5 ☔ View full report in Codecov by Sentry. |
FAT WARNING: we do have |
Are you referring to the |
I'd have to check what this is about (and most important where it comes from), I'm referencing the generated Lines 1204 to 1230 in dc0a51e
The idea of that was that you don't need any magic C translation at all, because each And additional to a possible debugger this is also be used for "runtime based" dumping in case of errors, which removes a huge portion of generated code from the C modules. |
That could fit our needs. While I prefer having the debug info in a separate file (similarly to MSVC's However (correct me if I'm wrong), the current GC4 debug info feature does not produce a map of C/COBOL locations, right ? That could be a valuable addition : I find Also, is there any plan to backport this feature in the 3.x branch ? |
it doesn't need, because the COBOL line numbers are visible to GCC already (currently in GC4 when compiling with |
Now that's awkward. Last time I checked (quite a long time ago, on my previous computer, with an outdated Linux distro), I could't get gdb to place a breakpoint in a COBOL file (eg Now, we'd just need that on the 3.x branch. |
If you really want that badly, then I'm ok with a merge request. To do so you'd first check which commits adjusted the code related to symbols (via git blame if the import is good, otherwise via svn blame), then check those revisions for unrelated changes, if there aren't any you can locally test that with an svn merge, this may result inn 98% working code. Important: the removal of Depending on how familiar you are with the process I'd guess this to be a work of 1-4 working days; but if done that way, it would be fine to be integrated into GC 3.x. |
Disclaimer: this is still a work in progress
This PR adds the ability to collect and dump various information useful for debugging, in particular:
This information can then used either by a tool that drives gdb or by a gdb extension to improve the debugging experience.
We plan to use it to improve debugging in our VSCode extension.