[Issue 22590] importC: static functions have no debug information generated for them
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 17 22:50:41 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22590
--- Comment #6 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Looks like `.debug_line` information isn't being emitted for static functions.
Without `static` (two functions, main and test_static):
---
Line Number Statements:
[0x00000029] Extended opcode 2: set Address to 0x0
[0x00000034] Set File Name to entry 1 in the File Name Table
[0x00000036] Special opcode 6: advance Address by 0 to 0x0 and Line by 1 to
2
[0x00000037] Special opcode 119: advance Address by 8 to 0x8 and Line by 2
to 4
[0x00000038] Special opcode 160: advance Address by 11 to 0x13 and Line by 1
to 5
[0x00000039] Special opcode 34: advance Address by 2 to 0x15 and Line by 1
to 6
[0x0000003a] Advance PC by 2 to 0x17
[0x0000003c] Extended opcode 1: End of Sequence
[0x0000003f] Extended opcode 2: set Address to 0x0
[0x0000004a] Set File Name to entry 1 in the File Name Table
[0x0000004c] Special opcode 13: advance Address by 0 to 0x0 and Line by 8 to
9
[0x0000004d] Special opcode 62: advance Address by 4 to 0x4 and Line by 1 to
10
[0x0000004e] Special opcode 76: advance Address by 5 to 0x9 and Line by 1 to
11
[0x0000004f] Advance PC by 2 to 0xb
[0x00000051] Extended opcode 1: End of Sequence
---
With `static` (same number of functions):
---
Line Number Statements:
[0x00000029] Extended opcode 2: set Address to 0x0
[0x00000034] Set File Name to entry 1 in the File Name Table
[0x00000036] Special opcode 13: advance Address by 0 to 0x0 and Line by 8 to
9
[0x00000037] Special opcode 62: advance Address by 4 to 0x4 and Line by 1 to
10
[0x00000038] Special opcode 76: advance Address by 5 to 0x9 and Line by 1 to
11
[0x00000039] Advance PC by 2 to 0xb
[0x0000003b] Extended opcode 1: End of Sequence
---
--
More information about the Digitalmars-d-bugs
mailing list