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

Fix issue 22848: DWARF .debug_line section should be always generated #13757

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

ljmf00
Copy link
Member

@ljmf00 ljmf00 commented Mar 4, 2022

The current DWARF generator doesn't generate .debug_line section if there is no
entries in the line table, although, to conform with DWARF standard and, in
order to readers read it correctly, this section need to be present, even
though, empty.

This change reverts d72827c, an old bug on OSX
ld64-77.

Signed-off-by: Luís Ferreira contact@lsferreira.net


Testing will be introduced in #13754 .

CC @jacob-carlborg

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ljmf00!

Bugzilla references

Auto-close Bugzilla Severity Description
22848 normal DWARF .debug_line section should be generated to conform with DW_AT_stmt_list bounds

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#13757"

The current DWARF generator doesn't generate .debug_line section if there is no
entries in the line table, although, to conform with DWARF standard and, in
order to readers read it correctly, this section need to be present, even
though, empty.

This change reverts d72827c, an old bug on OSX
ld64-77.

Related to issue 3502.

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
@dlang-bot dlang-bot merged commit b8ce8d9 into dlang:master Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants