Add a gdb stub and an arm jit so that we can debug clvm in gdb.#431
Draft
prozacchiwawa wants to merge 136 commits intomainfrom
Draft
Add a gdb stub and an arm jit so that we can debug clvm in gdb.#431prozacchiwawa wants to merge 136 commits intomainfrom
prozacchiwawa wants to merge 136 commits intomainfrom
Conversation
…ng with all-in-memory generation
…mething akin to a program with instructions annotated by dwarf.
…issing an element to enable gdb to do this mapping.
…e reach the first SWI instruction. We need to emulate those
…rrent instruction.
Co-authored-by: arty <prozacchiwawa@users.noreply.github.com>
Co-authored-by: arty <prozacchiwawa@users.noreply.github.com>
Co-authored-by: arty <prozacchiwawa@users.noreply.github.com>
…back-3683' into 20260408-gdb-debug
Co-authored-by: arty <prozacchiwawa@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
High Risk
Introduces a large new ARM JIT/ELF/DWARF generation and GDB remote-stub execution path, plus new external deps and CI requirements; bugs here could affect correctness of debug output and test stability.
Overview
Adds a new ARM-based JIT debugging pipeline that can compile CLVM/Chialisp into an ARM ELF with DWARF line info, execute it in an embedded ARMv4T emulator, and expose execution via a
gdbstubremote server (newcompiler::debug::armjitmodule).Introduces a new
armtxCLI for generating the ELF and launching the emulator/stub, plus GDB helper scripts/tests and CI updates to installgdb-multiarchso the new debug smoke tests run in GitHub Actions.Updates core compiler plumbing to support this path (exports
apply_opfor emulator-side operator execution) and adds several new dependencies (gimli,faerie,elf_rs,armv4t_emu,gdbstub,subprocess, etc.), with corresponding lockfile changes.Reviewed by Cursor Bugbot for commit 1232a68. Bugbot is set up for automated code reviews on this repo. Configure here.