Skip to content

Improve DWARF debugging support#2264

Merged
bettio merged 1 commit intoatomvm:release-0.7from
pguyot:w15/add-opcodes
Apr 18, 2026
Merged

Improve DWARF debugging support#2264
bettio merged 1 commit intoatomvm:release-0.7from
pguyot:w15/add-opcodes

Conversation

@pguyot
Copy link
Copy Markdown
Collaborator

@pguyot pguyot commented Apr 11, 2026

Implement nif_start (179), executable_line (183) and debug_line (184)

  • nif_start is implemented as no-op, preventing crash
  • executable_line is implemented on jit+dwarf for additional line information for debuggers
  • debug_line is implemented on jit+dwarf for additional line information and variable mapping for debuggers

Also fix DWARF generation by emitting DW_LNS_set_prologue_end which lldb needs to resolve breakpoints at function lines with executable_line.

Also clean up jit_dwarf.erl

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@pguyot pguyot force-pushed the w15/add-opcodes branch 2 times, most recently from 29594ba to 0fd10c9 Compare April 13, 2026 05:13
- `nif_start` is implemented as no-op, preventing crash
- `executable_line` is implemented on jit+dwarf for additional line
  information for debuggers
- `debug_line` is implemented on jit+dwarf for additional line
  information and variable mapping for debuggers

Also fix DWARF generation by emitting DW_LNS_set_prologue_end which lldb
needs to resolve breakpoints at function lines with `executable_line`.

Also clean up `jit_dwarf.erl`

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@bettio bettio merged commit 038dd84 into atomvm:release-0.7 Apr 18, 2026
269 of 279 checks passed
@pguyot pguyot deleted the w15/add-opcodes branch April 18, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants