Skip to content

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

Merged
dlang-bot merged 1 commit intodlang:masterfrom
ljmf00:fix-22848
Mar 4, 2022
Merged

Fix issue 22848: DWARF .debug_line section should be always generated#13757
dlang-bot merged 1 commit intodlang:masterfrom
ljmf00:fix-22848

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