kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

expected (2026B)


      1 kit dbg — 'h' for help, 'q' to quit
      2 Commands (abbrev. shown):
      3   h, help                     show this help
      4   q, quit                     exit (Ctrl-D also works)
      5   :language c|toy|asm|wasm/wat
      6                               select language for jit/expr input
      7   r, run                      start fresh execution at entry
      8   c, cont                     continue after a stop
      9   s, step                     step to next source line (into calls)
     10   si, stepi                   single-step one instruction
     11   n, next                     step to next source line (over calls)
     12   finish                      run until current frame returns
     13   jit [LANG|NAME] { ... }     compile and append a language snippet
     14   { ... }                     same as jit { ... }
     15   edit [LANG|NAME], e [...]   edit and append a language snippet
     16   expr EXPR | expr { ... }    compile and call an expression thunk
     17   EXPR                        same as expr EXPR
     18                               LANG defaults to the selected language
     19   jump ADDR                   set PC to ADDR (no resume)
     20   bt, backtrace               print stack trace with arguments
     21   b LOC                       set breakpoint at LOC:
     22                                  0xADDR | sym[+off] | file.c:line
     23   ignore N COUNT              skip the next COUNT hits of bp N
     24   d N, delete N               delete breakpoint N
     25   enable N | disable N        toggle breakpoint N
     26   p NAME                      print variable / global
     27   set NAME VALUE              write VALUE into NAME
     28   x ADDR [count]              examine memory (count bytes, default 16)
     29   disasm [ADDR] [count], x/i  disassemble at PC or ADDR
     30   list FILE:LINE, l FILE:LINE source listing around FILE:LINE
     31   info b                      list breakpoints
     32   info reg, info registers    dump registers
     33   info locals                 list locals at current PC
     34   info args                   list args at current PC
     35   info functions [PATTERN]    list JIT functions matching PATTERN
     36   info variables [PATTERN]    list JIT globals  matching PATTERN