Skip to content

Improve DWARF debugging support#2264

Open
pguyot wants to merge 1 commit intoatomvm:release-0.7from
pguyot:w15/add-opcodes
Open

Improve DWARF debugging support#2264
pguyot wants to merge 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

- `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>
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.

1 participant